- 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

@@ -1,8 +1,10 @@
Name:Psychic Purge
ManaCost:U
Types:Sorcery
Text:When a spell or ability an opponent controls causes you to discard Psychic Purge, that player loses 5 life.\r\n
Text:no text
A:SP$ DealDamage | Cost$ U | Tgt$ TgtCP | NumDmg$ 1 | SpellDescription$ CARDNAME deals 1 damage to target creature or player.
T:Mode$ Discarded | ValidCard$ Card.Self | ValidCause$ Card.YouDontCtrl | Execute$ TrigLoseLife | TriggerDescription$ When a spell or ability an opponent controls causes you to discard CARDNAME, that player loses 5 life.
SVar:TrigLoseLife:AB$LoseLife | Cost$ 0 | Defined$ Opponent | LifeAmount$ 5
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/psychic_purge.jpg
SetInfo:LEG|Common|http://magiccards.info/scans/en/lg/68.jpg

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 "