- 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() {
for (final Card c : game.getCardsIn(ZoneType.Battlefield)) {
for (Trigger t : c.getTriggers()) {
if (t.getMapParams().containsKey("CurseNonActive")
if (c.hasSVar("CurseNonActiveEffect")
&& !player.equals(game.getPhaseHandler().getPlayerTurn())) {
return true;
}
}
}
return false;
}

View File

@@ -1,8 +1,9 @@
Name:Price of Glory
ManaCost:2 R
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:CurseNonActiveEffect:True
SVar:RemAIDeck:True
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.