mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
add Instill Furor (from Ravnica:City of Guilds)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -2508,6 +2508,7 @@ res/cardsfolder/inspiration.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/inspired_charge.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/inspired_sprite.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/inspirit.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/instill_furor.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/instill_infection.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/insurrection.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/intervene.txt -text svneol=native#text/plain
|
||||
|
||||
9
res/cardsfolder/instill_furor.txt
Normal file
9
res/cardsfolder/instill_furor.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
Name:Instill Furor
|
||||
ManaCost:1 R
|
||||
Types:Enchantment Aura
|
||||
Text:Enchanted creature has "At the beginning of your end step, sacrifice this creature unless it attacked this turn."
|
||||
K:Enchant creature
|
||||
K:enPumpCurse:+0/+0/At the beginning of your end step, sacrifice this creature unless it attacked this turn.
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/instill_furor.jpg
|
||||
End
|
||||
@@ -168,6 +168,25 @@ public class EndOfTurn implements java.io.Serializable
|
||||
|
||||
AllZone.Stack.add(change);
|
||||
}
|
||||
if(c.hasKeyword("At the beginning of your end step, sacrifice this creature unless it attacked this turn.")
|
||||
&& !c.getCreatureAttackedThisTurn()
|
||||
/* && !(c.getTurnInZone() == AllZone.Phase.getTurn())*/
|
||||
&& AllZone.Phase.isPlayerTurn(c.getController())) {
|
||||
final Card source = c;
|
||||
final SpellAbility change = new Ability(source, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
if(AllZone.GameAction.isCardInPlay(source)) {
|
||||
AllZone.GameAction.sacrifice(source);
|
||||
}
|
||||
}
|
||||
};
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(source.getName()).append(" - sacrifice ").append(source.getName()).append(".");
|
||||
change.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.add(change);
|
||||
}
|
||||
if(c.getCreatureAttackedThisTurn()) c.setCreatureAttackedThisTurn(false);
|
||||
}
|
||||
execute(at);
|
||||
|
||||
Reference in New Issue
Block a user