mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58: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:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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_whispers.txt -text
|
||||
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_affliction.txt -text
|
||||
forge-gui/res/cardsfolder/m/malicious_intent.txt -text
|
||||
|
||||
@@ -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());
|
||||
|
||||
10
forge-gui/res/cardsfolder/m/malfegor_avatar.txt
Normal file
10
forge-gui/res/cardsfolder/m/malfegor_avatar.txt
Normal 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.
|
||||
Reference in New Issue
Block a user