mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Converted Contested War Zone to script.
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
Name:Contested War Zone
|
Name:Contested War Zone
|
||||||
ManaCost:no cost
|
ManaCost:no cost
|
||||||
Types:Land
|
Types:Land
|
||||||
Text:Whenever a creature deals combat damage to you, that creature's controller gains control of CARDNAME.
|
Text:no text
|
||||||
|
T:Mode$ DamageDone | ValidSource$ Creature | ValidTarget$ You | CombatDamage$ True | Execute$ TrigControl | TriggerZones$ Battlefield | TriggerDescription$ Whenever a creature deals combat damage to you, that creature's controller gains control of CARDNAME.
|
||||||
|
SVar:TrigControl:AB$ GainControl | Cost$ 0 | Defined$ Self | NewController$ TriggeredSourceController
|
||||||
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
|
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
|
||||||
A:AB$ PumpAll | Cost$ 1 T | ValidCards$ Creature.attacking | NumAtt$ +1 | SpellDescription$ Attacking creatures get +1/+0 until end of turn.
|
A:AB$ PumpAll | Cost$ 1 T | ValidCards$ Creature.attacking | NumAtt$ +1 | SpellDescription$ Attacking creatures get +1/+0 until end of turn.
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
|
|||||||
@@ -748,24 +748,6 @@ public final class GameActionUtil {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c.isCreature() && AllZoneUtil.isCardInPlay("Contested War Zone", player)) {
|
|
||||||
final List<Card> zones = player.getCardsIn(ZoneType.Battlefield, "Contested War Zone");
|
|
||||||
for (final Card zone : zones) {
|
|
||||||
final Ability ability = new Ability(zone, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if (AllZoneUtil.isCardInPlay(zone)) {
|
|
||||||
zone.addController(c.getController());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ability.setStackDescription(zone + " - " + c.getController() + " gains control of " + zone);
|
|
||||||
|
|
||||||
AllZone.getStack().addSimultaneousStackEntry(ability);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (c.hasStartOfKeyword("Poisonous")) {
|
if (c.hasStartOfKeyword("Poisonous")) {
|
||||||
final int keywordPosition = c.getKeywordPosition("Poisonous");
|
final int keywordPosition = c.getKeywordPosition("Poisonous");
|
||||||
final String parse = c.getKeyword().get(keywordPosition).toString();
|
final String parse = c.getKeyword().get(keywordPosition).toString();
|
||||||
@@ -807,7 +789,8 @@ public final class GameActionUtil {
|
|||||||
|
|
||||||
if (c.getName().equals("Scalpelexis")) {
|
if (c.getName().equals("Scalpelexis")) {
|
||||||
GameActionUtil.playerCombatDamageScalpelexis(c);
|
GameActionUtil.playerCombatDamageScalpelexis(c);
|
||||||
} else if (c.isEnchantedBy("Celestial Mantle")) {
|
}
|
||||||
|
if (c.isEnchantedBy("Celestial Mantle")) {
|
||||||
GameActionUtil.executeCelestialMantle(c);
|
GameActionUtil.executeCelestialMantle(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user