- Converted Psychic Purge to script.

This commit is contained in:
Sloth
2011-11-03 07:32:44 +00:00
parent 8e32120a3f
commit fe00f490d4
2 changed files with 3 additions and 17 deletions

View File

@@ -1386,22 +1386,6 @@ public abstract class Player extends GameEntity {
sa.addCostToHashList(c, "Discarded");
}
/*
* When a spell or ability an opponent controls causes you to discard
* Psychic Purge, that player loses 5 life.
*/
if (c.getName().equals("Psychic Purge")) {
if (null != sa && !sa.getSourceCard().getController().equals(this)) {
SpellAbility ability = new Ability(c, "") {
public void resolve() {
sa.getSourceCard().getController().loseLife(5, c);
}
};
ability.setStackDescription(c.getName() + " - " + sa.getSourceCard().getController() + " loses 5 life.");
AllZone.getStack().add(ability);
}
}
AllZone.getGameAction().discardMadness(c);
if ((c.hasKeyword("If a spell or ability an opponent controls causes "