mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Added a new AI SVar: AmbushAI. Creatures with it will be played when the opponent is attacking.
This commit is contained in:
@@ -777,8 +777,8 @@ public class AiController {
|
||||
&& (player.isUnlimitedHandSize() || player.getCardsIn(ZoneType.Hand).size() <= player.getMaxHandSize())
|
||||
&& player.getManaPool().totalMana() <= 0
|
||||
&& (game.getPhaseHandler().isPlayerTurn(player)
|
||||
|| game.getPhaseHandler().getPhase().isBefore(PhaseType.COMBAT_DECLARE_ATTACKERS)
|
||||
&& !card.hasETBTrigger())
|
||||
|| game.getPhaseHandler().getPhase().isBefore(PhaseType.COMBAT_DECLARE_ATTACKERS))
|
||||
&& (!card.hasETBTrigger() || card.hasSVar("AmbushAI"))
|
||||
&& !ComputerUtil.castPermanentInMain1(player, sa)) {
|
||||
return AiPlayDecision.AnotherTime;
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@ Name:Affa Guard Hound
|
||||
ManaCost:2 W
|
||||
Types:Creature Hound
|
||||
PT:2/2
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ When CARDNAME enters the battlefield, target creature gets +0/+3 until end of turn.
|
||||
SVar:TrigPump:AB$Pump | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDef$ +3
|
||||
K:Flash
|
||||
SVar:PlayMain1:TRUE
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ When CARDNAME enters the battlefield, target creature gets +0/+3 until end of turn.
|
||||
SVar:TrigPump:AB$ Pump | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDef$ +3
|
||||
SVar:AmbushAI:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/affa_guard_hound.jpg
|
||||
Oracle:Flash\nWhen Affa Guard Hound enters the battlefield, target creature gets +0/+3 until end of turn.
|
||||
|
||||
@@ -8,5 +8,6 @@ K:Flying
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.Self | Execute$ AngelicSalvation | TriggerDescription$ When CARDNAME enters the battlefield, prevent the next 5 damage that would be dealt this turn to any number of target creatures and/or players, divided as you choose.
|
||||
SVar:AngelicSalvation:DB$ PreventDamage | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player to prevent damage to | Amount$ 5 | TargetMin$ 1 | TargetMax$ 5 | DividedAsYouChoose$ 5
|
||||
SVar:RemAIDeck:True
|
||||
SVar:AmbushAI:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/angel_of_salvation.jpg
|
||||
Oracle:Flash, convoke (Your creatures can help cast this spell. Each creature you tap while casting this spell pays for {1} or one mana of that creature's color.)\nFlying\nWhen Angel of Salvation enters the battlefield, prevent the next 5 damage that would be dealt this turn to any number of target creatures and/or players, divided as you choose.
|
||||
|
||||
@@ -5,5 +5,6 @@ PT:3/2
|
||||
K:Flash
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigTap | TriggerDescription$ When CARDNAME enters the battlefield, untap another target creature you control.
|
||||
SVar:TrigTap:AB$ Untap | Cost$ 0 | ValidTgts$ Creature.Other+YouCtrl | TgtPrompt$ Choose another target creature you control.
|
||||
SVar:AmbushAI:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/breaching_hippocamp.jpg
|
||||
Oracle:Flash (You may cast this spell any time you could cast an instant.)\nWhen Breaching Hippocamp enters the battlefield, untap another target creature you control.
|
||||
|
||||
@@ -9,5 +9,6 @@ SVar:TrigPrevent:DB$ PreventDamage | Cost$ 0 | ValidTgts$ Creature,Player | TgtP
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self+evoked | Execute$ TrigSac | Secondary$ True | TriggerDescription$ When CARDNAME enters the battlefield, if you cast it by it's evoke cost, sacrifice it.
|
||||
SVar:TrigSac:AB$ Sacrifice | Cost$ 0
|
||||
SVar:RemAIDeck:True
|
||||
SVar:AmbushAI:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/dawnfluke.jpg
|
||||
Oracle:Flash\nWhen Dawnfluke enters the battlefield, prevent the next 3 damage that would be dealt to target creature or player this turn.\nEvoke {W} (You may cast this spell for its evoke cost. If you do, it's sacrificed when it enters the battlefield.)
|
||||
|
||||
@@ -6,5 +6,6 @@ K:Flash
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigEffect | TriggerDescription$ When CARDNAME enters the battlefield, prevent all damage that would be dealt to artifact creatures this turn.
|
||||
SVar:TrigEffect:DB$ Effect | Name$ Ethersworn Shieldmage Effect | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that would be dealt to artifact creatures this turn.
|
||||
SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ Creature.Artifact | Description$ Prevent all damage that would be dealt to artifact creatures this turn.
|
||||
SVar:AmbushAI:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/ethersworn_shieldmage.jpg
|
||||
Oracle:Flash\nWhen Ethersworn Shieldmage enters the battlefield, prevent all damage that would be dealt to artifact creatures this turn.
|
||||
|
||||
@@ -6,6 +6,6 @@ K:Flash
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigEffect | TriggerDescription$ When CARDNAME enters the battlefield, prevent all combat damage that other creatures would deal this turn.
|
||||
SVar:TrigEffect:AB$ Effect | Cost$ 0 | Name$ Haze Frog Effect | StaticAbilities$ HazeFrogPrevent | References$ HazeFrogPrevent | RememberObjects$ Self
|
||||
SVar:HazeFrogPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.IsNotRemembered | CombatDamage$ True | Description$ Prevent all combat damage that other creatures would deal this turn.
|
||||
SVar:RemAIDeck:True
|
||||
SVar:AmbushAI:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/haze_frog.jpg
|
||||
Oracle:Flash (You may cast this spell any time you could cast an instant.)\nWhen Haze Frog enters the battlefield, prevent all combat damage that other creatures would deal this turn.
|
||||
|
||||
@@ -6,5 +6,7 @@ K:Flash
|
||||
K:Flying
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigRemove | TriggerDescription$ When CARDNAME enters the battlefield, remove target attacking or blocking creature from combat.
|
||||
SVar:TrigRemove:AB$ RemoveFromCombat | Cost$ 0 | ValidTgts$ Creature.attacking,Creature.blocking | TgtPrompt$ Select target attacking or blocking creature
|
||||
SVar:RemAIDeck:True
|
||||
SVar:AmbushAI:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/hollowhenge_spirit.jpg
|
||||
Oracle:Flash (You may cast this spell any time you could cast an instant.)\nFlying\nWhen Hollowhenge Spirit enters the battlefield, remove target attacking or blocking creature from combat.
|
||||
|
||||
@@ -3,4 +3,5 @@ ManaCost:2 R
|
||||
Types:Creature Viashino
|
||||
PT:4/3
|
||||
K:If CARDNAME attacks, all creatures you control attack if able.
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/viashino_bey.jpg
|
||||
Oracle:If Viashino Bey attacks, all creatures you control attack if able.
|
||||
|
||||
@@ -4,6 +4,7 @@ Types:Creature Viashino Scout
|
||||
PT:2/1
|
||||
K:Flash
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ When CARDNAME enters the battlefield, target creature gains first strike until end of turn.
|
||||
SVar:TrigPump:AB$Pump | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature | KW$ First Strike
|
||||
SVar:TrigPump:AB$ Pump | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature | KW$ First Strike
|
||||
SVar:AmbushAI:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/viashino_bladescout.jpg
|
||||
Oracle:Flash (You may cast this spell any time you could cast an instant.)\nWhen Viashino Bladescout enters the battlefield, target creature gains first strike until end of turn.
|
||||
|
||||
@@ -5,5 +5,6 @@ PT:1/4
|
||||
K:Flash
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigUntap | TriggerDescription$ When CARDNAME enters the battlefield, untap all creatures you control.
|
||||
SVar:TrigUntap:AB$ UntapAll | Cost$ 0 | ValidCards$ Creature.YouCtrl
|
||||
SVar:AmbushAI:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/village_bell_ringer.jpg
|
||||
Oracle:Flash (You may cast this spell any time you could cast an instant.)\nWhen Village Bell-Ringer enters the battlefield, untap all creatures you control.
|
||||
|
||||
Reference in New Issue
Block a user