mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user