- Simplified Standstill's script

This commit is contained in:
swordshine
2013-08-08 10:25:05 +00:00
parent 70323eccd0
commit c0de6f7721
2 changed files with 7 additions and 10 deletions

View File

@@ -1,15 +1,14 @@
Name:Standstill Name:Standstill
ManaCost:1 U ManaCost:1 U
Types:Enchantment Types:Enchantment
A:SP$ PermanentNoncreature | Cost$ 1 U | AILogic$ MoreCreatures T:Mode$ SpellCast | ValidActivatingPlayer$ Player | TriggerZones$ Battlefield | Execute$ TrigSac | TriggerDescription$ When a player casts a spell, sacrifice CARDNAME. If you do, each of that player's opponents draws three cards.
T:Mode$ SpellCast | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigSacYou | TriggerDescription$ When a player casts a spell, sacrifice CARDNAME. If you do, each of that player's opponents draws three cards. SVar:TrigSac:AB$ Sacrifice | Cost$ 0 | SacValid$ Self | RememberSacrificed$ True | SubAbility$ DrawOpp
T:Mode$ SpellCast | ValidActivatingPlayer$ Opponent | TriggerZones$ Battlefield | Execute$ TrigSacOpp | Secondary$ True | TriggerDescription$ When a player casts a spell, sacrifice CARDNAME. If you do, each of that player's opponents draws three cards. SVar:DrawOpp:DB$ Draw | NumCards$ 3 | Defined$ TriggeredCardOpponent | ConditionCheckSVar$ X | ConditionSVarCompare$ GE1 | SubAbility$ DBCleanup
#Must use SacrificeAll since regular sacrifice can't remember the sac'd cards atm. SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:TrigSacYou:AB$SacrificeAll | Cost$ 0 | ValidCards$ Card.Self | RememberSacrificed$ True | SubAbility$ DrawOpp
SVar:TrigSacOpp:AB$SacrificeAll | Cost$ 0 | ValidCards$ Card.Self | RememberSacrificed$ True | SubAbility$ DrawYou
SVar:DrawOpp:DB$ Draw | NumCards$ 3 | Defined$ Opponent | ConditionCheckSVar$ X | ConditionSVarCompare$ GE1
SVar:DrawYou:DB$ Draw | NumCards$ 3 | Defined$ You | ConditionCheckSVar$ X | ConditionSVarCompare$ GE1
SVar:X:Remembered$Amount SVar:X:Remembered$Amount
SVar:Y:Count$Valid Creature.YouCtrl
SVar:Z:Count$Valid Creature.OppCtrl
SVar:NeedsToPlayVar:Y GTZ
Svar:RemAIDeck:True Svar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/standstill.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/standstill.jpg
Oracle:When a player casts a spell, sacrifice Standstill. If you do, each of that player's opponents draws three cards. Oracle:When a player casts a spell, sacrifice Standstill. If you do, each of that player's opponents draws three cards.

View File

@@ -21,8 +21,6 @@ public class PermanentNoncreatureAi extends SpellAbilityAi {
if ("DontCast".equals(logic)) { if ("DontCast".equals(logic)) {
return false; return false;
} else if ("MoreCreatures".equals(logic)) {
return (aiPlayer.getCreaturesInPlay().size() > aiPlayer.getOpponent().getCreaturesInPlay().size());
} }
// Wait for Main2 if possible // Wait for Main2 if possible