- Removed the keyword "At the beginning of your end step, destroy this creature if it didn't attack this turn." and converted Aggression.

This commit is contained in:
Sloth
2011-11-17 13:55:50 +00:00
parent e90b844f48
commit 8019de85b6
4 changed files with 8 additions and 43 deletions

View File

@@ -192,44 +192,6 @@ public class EndOfTurn implements java.io.Serializable {
AllZone.getStack().addSimultaneousStackEntry(change);
}
if (c.hasKeyword("At the beginning of your end step, sacrifice this creature unless it attacked this turn.")
&& !c.getCreatureAttackedThisTurn()
/* && !(c.getTurnInZone() == AllZone.getPhase().getTurn()) */
&& AllZone.getPhase().isPlayerTurn(c.getController())) {
final Card source = c;
final SpellAbility change = new Ability(source, "0") {
@Override
public void resolve() {
if (AllZoneUtil.isCardInPlay(source)) {
AllZone.getGameAction().sacrifice(source);
}
}
};
StringBuilder sb = new StringBuilder();
sb.append(source.getName()).append(" - sacrifice ").append(source.getName()).append(".");
change.setStackDescription(sb.toString());
AllZone.getStack().addSimultaneousStackEntry(change);
}
if (c.hasKeyword("At the beginning of your end step, destroy this creature if it didn't attack this turn.")
&& !c.getCreatureAttackedThisTurn() && AllZone.getPhase().isPlayerTurn(c.getController())) {
final Card source = c;
final SpellAbility change = new Ability(source, "0") {
@Override
public void resolve() {
if (AllZoneUtil.isCardInPlay(source)) {
AllZone.getGameAction().destroy(source);
}
}
};
StringBuilder sb = new StringBuilder();
sb.append(source.getName()).append(" - destroy ").append(source.getName()).append(".");
change.setStackDescription(sb.toString());
AllZone.getStack().addSimultaneousStackEntry(change);
}
if (c.hasKeyword("At the beginning of your end step, return CARDNAME to its owner's hand.")
&& AllZone.getPhase().isPlayerTurn(c.getController())) {