mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Converted Psychic Purge to script.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user