mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Better script for Price of Glory
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user