Add Malfegor Avatar:

add IsUnearthed for Card check and CardUtil.getLKICopy does copy Unearthed too
when a Creature is exiled because of Unearth, use LKI for the ChangesZone Trigger
This commit is contained in:
Hanmac
2016-06-09 08:32:01 +00:00
parent 792fbf00b4
commit c065dbde0e
5 changed files with 18 additions and 0 deletions

View File

@@ -233,6 +233,7 @@ public class GameAction {
if (c.isUnearthed() && (zoneTo.is(ZoneType.Graveyard) || zoneTo.is(ZoneType.Hand) || zoneTo.is(ZoneType.Library))) {
zoneTo = c.getOwner().getZone(ZoneType.Exile);
lastKnownInfo = CardUtil.getLKICopy(c);
c.setUnearthed(false);
}
}

View File

@@ -5151,6 +5151,10 @@ public class Card extends GameEntity implements Comparable<Card> {
if (isMonstrous()) {
return false;
}
} else if (property.equals("IsUnearthed")) {
if (!isUnearthed()) {
return false;
}
} else if (property.equals("IsRenowned")) {
if (!isRenowned()) {
return false;

View File

@@ -288,6 +288,8 @@ public final class CardUtil {
newCopy.addImprintedCard(o);
}
newCopy.setUnearthed(in.isUnearthed());
newCopy.setChangedCardColors(in.getChangedCardColors());
newCopy.setChangedCardKeywords(in.getChangedCardKeywords());
newCopy.setChangedCardTypes(in.getChangedCardTypes());