add Instill Furor (from Ravnica:City of Guilds)

This commit is contained in:
jendave
2011-08-06 14:32:43 +00:00
parent 2ab0ae81f9
commit d9767de0c6
3 changed files with 29 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -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_charge.txt -text svneol=native#text/plain
res/cardsfolder/inspired_sprite.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/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/instill_infection.txt -text svneol=native#text/plain
res/cardsfolder/insurrection.txt -text svneol=native#text/plain res/cardsfolder/insurrection.txt -text svneol=native#text/plain
res/cardsfolder/intervene.txt -text svneol=native#text/plain res/cardsfolder/intervene.txt -text svneol=native#text/plain

View 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

View File

@@ -168,6 +168,25 @@ public class EndOfTurn implements java.io.Serializable
AllZone.Stack.add(change); 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); if(c.getCreatureAttackedThisTurn()) c.setCreatureAttackedThisTurn(false);
} }
execute(at); execute(at);