- Better script for Price of Glory

This commit is contained in:
swordshine
2014-02-26 06:22:24 +00:00
parent fbbab5110c
commit 83363d7491
2 changed files with 6 additions and 6 deletions

View File

@@ -178,12 +178,11 @@ public class AiController {
private boolean checkCurseEffects() { private boolean checkCurseEffects() {
for (final Card c : game.getCardsIn(ZoneType.Battlefield)) { for (final Card c : game.getCardsIn(ZoneType.Battlefield)) {
for (Trigger t : c.getTriggers()) { if (c.hasSVar("CurseNonActiveEffect")
if (t.getMapParams().containsKey("CurseNonActive") && !player.equals(game.getPhaseHandler().getPlayerTurn())) {
&& !player.equals(game.getPhaseHandler().getPlayerTurn())) { return true;
return true;
}
} }
} }
return false; return false;
} }

View File

@@ -1,8 +1,9 @@
Name:Price of Glory Name:Price of Glory
ManaCost:2 R ManaCost:2 R
Types:Enchantment Types:Enchantment
T:Mode$ TapsForMana | ValidCard$ Land | Execute$ TrigDestroy | TriggerZones$ Battlefield | Activator$ Player.NonActive | CurseNonActive$ True | TriggerDescription$ Whenever a player taps a land for mana, if it's not that player's turn, destroy that land. T:Mode$ TapsForMana | ValidCard$ Land | Execute$ TrigDestroy | TriggerZones$ Battlefield | Activator$ Player.NonActive | TriggerDescription$ Whenever a player taps a land for mana, if it's not that player's turn, destroy that land.
SVar:TrigDestroy:DB$ Destroy | Defined$ TriggeredCard SVar:TrigDestroy:DB$ Destroy | Defined$ TriggeredCard
SVar:CurseNonActiveEffect:True
SVar:RemAIDeck:True SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/price_of_glory.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/price_of_glory.jpg
Oracle:Whenever a player taps a land for mana, if it's not that player's turn, destroy that land. Oracle:Whenever a player taps a land for mana, if it's not that player's turn, destroy that land.