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

1
.gitattributes vendored
View File

@@ -9353,6 +9353,7 @@ forge-gui/res/cardsfolder/m/malakir_soothsayer.txt -text
forge-gui/res/cardsfolder/m/malevolent_awakening.txt svneol=native#text/plain forge-gui/res/cardsfolder/m/malevolent_awakening.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/malevolent_whispers.txt -text forge-gui/res/cardsfolder/m/malevolent_whispers.txt -text
forge-gui/res/cardsfolder/m/malfegor.txt -text svneol=unset#text/plain forge-gui/res/cardsfolder/m/malfegor.txt -text svneol=unset#text/plain
forge-gui/res/cardsfolder/m/malfegor_avatar.txt -text svneol=unset#text/plain
forge-gui/res/cardsfolder/m/malicious_advice.txt svneol=native#text/plain forge-gui/res/cardsfolder/m/malicious_advice.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/malicious_affliction.txt -text forge-gui/res/cardsfolder/m/malicious_affliction.txt -text
forge-gui/res/cardsfolder/m/malicious_intent.txt -text forge-gui/res/cardsfolder/m/malicious_intent.txt -text

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,10 @@
Name:Malfegor Avatar
ManaCost:no cost
Types:Vanguard
HandLifeModifier:+2/-2
T:Mode$ ChangesZone | ValidCard$ Creature.YouCtrl+IsUnearthed | Origin$ Any | Destination$ Battlefield | TriggerZones$ Command | Execute$ TrigPump | TriggerDescription$ Whenever a creature enters the battlefield under your control, if it was unearthed, it gets +3/+0.
SVar:TrigPump:AB$ Pump | Cost$ 0 | Defined$ TriggeredCard | NumAtt$ +3
T:Mode$ ChangesZone | ValidCard$ Card.IsUnearthed | Origin$ Any | Destination$ Exile | TriggerZones$ Command | Execute$ TrigMove | TriggerDescription$ Whenever a creature you control is exiled, if it was uneathed, shuffle that card into its owner's library.
SVar:TrigMove:AB$ ChangeZone | Cost$ 0 | Origin$ Exile | Destination$ Library | Defined$ TriggeredCard | Shuffle$ True
SVar:Picture:http://downloads.cardforge.link/images/cards/VAN/Malfegor Avatar.full.jpg
Oracle:Hand +2, life -2\nWhenever a creature enters the battlefield under your control, if it was unearthed, it gets +3/+0.\nWhenever a creature you control is exiled, if it was uneathed, shuffle that card into its owner's library.