mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- 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:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user