- Converted Cosmic Horror to script

This commit is contained in:
swordshine
2013-08-05 11:01:07 +00:00
parent ec645d7f0e
commit a6a151f98f
2 changed files with 4 additions and 5 deletions

View File

@@ -1,9 +1,11 @@
Name:Cosmic Horror
ManaCost:3 B B B
Types:Creature Horror
Text:If Cosmic Horror is destroyed this way, it deals 7 damage to you.
PT:7/7
K:First Strike
K:At the beginning of your upkeep, destroy CARDNAME unless you pay 3 B B B
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigDestroy | TriggerDescription$ At the beginning of your upkeep, destroy CARDNAME unless you pay 3 B B B. If CARDNAME is destroyed this way, it deals 7 damage to you.
SVar:TrigDestroy:AB$ Destroy | Cost$ 0 | Defined$ Self | RememberDestroyed$ True | UnlessCost$ 3 B B B | UnlessPayer$ You | SubAbility$ DBDmg
SVar:DBDmg:DB$ DealDamage | Defined$ You | NumDmg$ 7 | ConditionDefined$ Remembered | ConditionPresent$ Card | ConditionCompare$ GE1 | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:Picture:http://www.wizards.com/global/images/magic/general/cosmic_horror.jpg
Oracle:First strike\nAt the beginning of your upkeep, destroy Cosmic Horror unless you pay {3}{B}{B}{B}. If Cosmic Horror is destroyed this way, it deals 7 damage to you.

View File

@@ -224,9 +224,6 @@ public class Upkeep extends Phase {
}
}
if( !isUpkeepPaid ) {
if (c.getName().equals("Cosmic Horror")) {
controller.addDamage(7, c);
}
game.getAction().destroy(c, this);
}