mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Update scripts
This commit is contained in:
@@ -78,7 +78,7 @@ public class AnimateAi extends SpellAbilityAi {
|
|||||||
// don't use instant speed animate abilities outside humans
|
// don't use instant speed animate abilities outside humans
|
||||||
// Combat_Declare_Attackers_InstantAbility step
|
// Combat_Declare_Attackers_InstantAbility step
|
||||||
if (ph.getPlayerTurn().isOpponentOf(aiPlayer) &&
|
if (ph.getPlayerTurn().isOpponentOf(aiPlayer) &&
|
||||||
(!ph.is(PhaseType.COMBAT_DECLARE_ATTACKERS, opponent) || game.getCombat().getAttackersOf(aiPlayer).isEmpty())) {
|
(!ph.is(PhaseType.COMBAT_DECLARE_ATTACKERS, opponent) || (game.getCombat() != null && game.getCombat().getAttackersOf(aiPlayer).isEmpty()))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ ManaCost:7
|
|||||||
Types:Artifact Creature Golem
|
Types:Artifact Creature Golem
|
||||||
PT:7/7
|
PT:7/7
|
||||||
K:Defender
|
K:Defender
|
||||||
T:Mode$ Attacks | ValidCard$ Creature.YouDontCtrl | Attacked$ You,Planeswalker.YouCtrl | IsPresent$ Card.Self+withDefender | TriggerZones$ Battlefield | Execute$ DBAnimate | TriggerDescription$ Whenever a creature attacks you or a planeswalker you control, if CARDNAME has defender, it loses defender and gains trample.
|
T:Mode$ Attacks | ValidCard$ Creature | Attacked$ You,Planeswalker.YouCtrl | IsPresent$ Card.Self+withDefender | TriggerZones$ Battlefield | Execute$ DBAnimate | TriggerDescription$ Whenever a creature attacks you or a planeswalker you control, if CARDNAME has defender, it loses defender and gains trample.
|
||||||
SVar:DBAnimate:DB$ Animate | Keywords$ Trample | RemoveKeywords$ Defender | Permanent$ True
|
SVar:DBAnimate:DB$ Animate | Keywords$ Trample | RemoveKeywords$ Defender | Permanent$ True
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/guardian_of_the_ages.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/guardian_of_the_ages.jpg
|
||||||
Oracle:Defender (This creature can't attack.)\nWhen a creature attacks you or a planeswalker you control, if Guardian of the Ages has defender, it loses defender and gains trample.
|
Oracle:Defender (This creature can't attack.)\nWhen a creature attacks you or a planeswalker you control, if Guardian of the Ages has defender, it loses defender and gains trample.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Types:Creature Insect
|
|||||||
PT:3/2
|
PT:3/2
|
||||||
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigExile | TriggerDescription$ Imprint - When CARDNAME enters the battlefield, exile target land.
|
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigExile | TriggerDescription$ Imprint - When CARDNAME enters the battlefield, exile target land.
|
||||||
SVar:TrigExile:AB$ChangeZone | Cost$ 0 | Imprint$ True | ValidTgts$ Land | TgtPrompt$ Select target land | Origin$ Battlefield | Destination$ Exile
|
SVar:TrigExile:AB$ChangeZone | Cost$ 0 | Imprint$ True | ValidTgts$ Land | TgtPrompt$ Select target land | Origin$ Battlefield | Destination$ Exile
|
||||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Land.sharesNameWith Imprinted+YouDontCtrl | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ Whenever a land with the same name as the exiled card enters the battlefield under an opponent's control, CARDNAME deals 2 damage to that player.
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Land.sharesNameWith Imprinted+OppCtrl | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ Whenever a land with the same name as the exiled card enters the battlefield under an opponent's control, CARDNAME deals 2 damage to that player.
|
||||||
SVar:TrigDamage:AB$DealDamage | Cost$ 0 | Defined$ TriggeredCardController | NumDmg$ 2
|
SVar:TrigDamage:AB$DealDamage | Cost$ 0 | Defined$ TriggeredCardController | NumDmg$ 2
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/invader_parasite.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/invader_parasite.jpg
|
||||||
Oracle:Imprint - When Invader Parasite enters the battlefield, exile target land.\nWhenever a land with the same name as the exiled card enters the battlefield under an opponent's control, Invader Parasite deals 2 damage to that player.
|
Oracle:Imprint - When Invader Parasite enters the battlefield, exile target land.\nWhenever a land with the same name as the exiled card enters the battlefield under an opponent's control, Invader Parasite deals 2 damage to that player.
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
Name:Iron Maiden
|
Name:Iron Maiden
|
||||||
ManaCost:3
|
ManaCost:3
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Opponent | IsPresent$ Card.YouDontCtrl | PresentZone$ Hand | PresentCompare$ GT4 | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of each opponent's upkeep, CARDNAME deals X damage to that player, where X is the number of cards in his or her hand minus 4.
|
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Opponent | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of each opponent's upkeep, CARDNAME deals X damage to that player, where X is the number of cards in his or her hand minus 4.
|
||||||
SVar:TrigDamage:AB$ DealDamage | Cost$ 0 | Defined$ TriggeredPlayer | NumDmg$ X | References$ X
|
SVar:TrigDamage:AB$ DealDamage | Cost$ 0 | Defined$ TriggeredPlayer | NumDmg$ X | References$ X
|
||||||
SVar:X:TriggeredPlayer$CardsInHand/Minus.4
|
SVar:X:TriggeredPlayer$CardsInHand/Minus.4
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/iron_maiden.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/iron_maiden.jpg
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Name:Lure of Prey
|
|||||||
ManaCost:2 G G
|
ManaCost:2 G G
|
||||||
Types:Instant
|
Types:Instant
|
||||||
S:Mode$ CantBeCast | ValidCard$ Card.Self | EffectZone$ All | CheckSVar$ X | SVarCompare$ LE0 | Description$ Cast CARDNAME only if an opponent cast a creature spell this turn.
|
S:Mode$ CantBeCast | ValidCard$ Card.Self | EffectZone$ All | CheckSVar$ X | SVarCompare$ LE0 | Description$ Cast CARDNAME only if an opponent cast a creature spell this turn.
|
||||||
SVar:X:Count$ThisTurnCast_Creature.YouDontCtrl
|
SVar:X:Count$ThisTurnCast_Creature.OppCtrl
|
||||||
A:SP$ ChangeZone | Cost$ 2 G G | Origin$ Hand | Destination$ Battlefield | ChangeType$ Creature.Green | ChangeNum$ 1 | SpellDescription$ You may put a green creature card from your hand onto the battlefield.
|
A:SP$ ChangeZone | Cost$ 2 G G | Origin$ Hand | Destination$ Battlefield | ChangeType$ Creature.Green | ChangeNum$ 1 | SpellDescription$ You may put a green creature card from your hand onto the battlefield.
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/lure_of_prey.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/lure_of_prey.jpg
|
||||||
Oracle:Cast Lure of Prey only if an opponent cast a creature spell this turn.\nYou may put a green creature card from your hand onto the battlefield.
|
Oracle:Cast Lure of Prey only if an opponent cast a creature spell this turn.\nYou may put a green creature card from your hand onto the battlefield.
|
||||||
@@ -4,6 +4,6 @@ Types:Instant Trap
|
|||||||
A:SP$Tap | Cost$ 2 U U | TargetMin$ 0 | TargetMax$ 2 | ValidTgts$ Creature | TgtPrompt$ Select target creature | SubAbility$ DBPump | SpellDescription$ Tap up to two target creatures. Those creatures don't untap during their controller's next untap step.
|
A:SP$Tap | Cost$ 2 U U | TargetMin$ 0 | TargetMax$ 2 | ValidTgts$ Creature | TgtPrompt$ Select target creature | SubAbility$ DBPump | SpellDescription$ Tap up to two target creatures. Those creatures don't untap during their controller's next untap step.
|
||||||
A:SP$Tap | Cost$ U | CheckSVar$ GreenCreats | References$ GreenCreats | TargetMin$ 0 | TargetMax$ 2 | ValidTgts$ Creature | TgtPrompt$ Select target creature | SubAbility$ DBPump | SpellDescription$ If an opponent had a green creature enter the battlefield under his or her control this turn, you may pay {U} rather than pay CARDNAME's mana cost.
|
A:SP$Tap | Cost$ U | CheckSVar$ GreenCreats | References$ GreenCreats | TargetMin$ 0 | TargetMax$ 2 | ValidTgts$ Creature | TgtPrompt$ Select target creature | SubAbility$ DBPump | SpellDescription$ If an opponent had a green creature enter the battlefield under his or her control this turn, you may pay {U} rather than pay CARDNAME's mana cost.
|
||||||
SVar:DBPump:DB$Pump | Defined$ Targeted | KW$ HIDDEN This card doesn't untap during your next untap step. | Permanent$ True
|
SVar:DBPump:DB$Pump | Defined$ Targeted | KW$ HIDDEN This card doesn't untap during your next untap step. | Permanent$ True
|
||||||
SVar:GreenCreats:Count$ThisTurnEntered_Battlefield_Creature.Green+YouDontCtrl
|
SVar:GreenCreats:Count$ThisTurnEntered_Battlefield_Creature.Green+OppCtrl
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/permafrost_trap.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/permafrost_trap.jpg
|
||||||
Oracle:If an opponent had a green creature enter the battlefield under his or her control this turn, you may pay {U} rather than pay Permafrost Trap's mana cost.\nTap up to two target creatures. Those creatures don't untap during their controller's next untap step.
|
Oracle:If an opponent had a green creature enter the battlefield under his or her control this turn, you may pay {U} rather than pay Permafrost Trap's mana cost.\nTap up to two target creatures. Those creatures don't untap during their controller's next untap step.
|
||||||
@@ -3,6 +3,6 @@ ManaCost:3 R G
|
|||||||
Types:Enchantment
|
Types:Enchantment
|
||||||
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ Opponent | CheckSVar$ X | SVarCompare$ EQ0 | References$ X | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$ At the beginning of each opponent's end step, if that player didn't cast a creature spell this turn, put a 2/2 green Lizard creature token onto the battlefield.
|
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ Opponent | CheckSVar$ X | SVarCompare$ EQ0 | References$ X | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$ At the beginning of each opponent's end step, if that player didn't cast a creature spell this turn, put a 2/2 green Lizard creature token onto the battlefield.
|
||||||
SVar:TrigToken:AB$Token | Cost$ 0 | TokenName$ Lizard | TokenTypes$ Creature,Lizard | TokenColors$ Green | TokenPower$ 2 | TokenToughness$ 2 | TokenAmount$ 1 | TokenOwner$ You
|
SVar:TrigToken:AB$Token | Cost$ 0 | TokenName$ Lizard | TokenTypes$ Creature,Lizard | TokenColors$ Green | TokenPower$ 2 | TokenToughness$ 2 | TokenAmount$ 1 | TokenOwner$ You
|
||||||
SVar:X:Count$ThisTurnCast_Creature.YouDontCtrl
|
SVar:X:Count$ThisTurnCast_Creature.ActivePlayerCtrl
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/predatory_advantage.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/predatory_advantage.jpg
|
||||||
Oracle:At the beginning of each opponent's end step, if that player didn't cast a creature spell this turn, put a 2/2 green Lizard creature token onto the battlefield.
|
Oracle:At the beginning of each opponent's end step, if that player didn't cast a creature spell this turn, put a 2/2 green Lizard creature token onto the battlefield.
|
||||||
@@ -4,7 +4,7 @@ Types:Enchantment Aura
|
|||||||
K:Enchant creature
|
K:Enchant creature
|
||||||
A:SP$ Attach | Cost$ 1 W W | ValidTgts$ Creature | AILogic$ Curse
|
A:SP$ Attach | Cost$ 1 W W | ValidTgts$ Creature | AILogic$ Curse
|
||||||
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddHiddenKeyword$ CARDNAME can't attack or block. & CARDNAME's activated abilities can't be activated. | Description$ Enchanted creature can't attack or block and its activated abilities can't be activated.
|
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddHiddenKeyword$ CARDNAME can't attack or block. & CARDNAME's activated abilities can't be activated. | Description$ Enchanted creature can't attack or block and its activated abilities can't be activated.
|
||||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.YouDontCtrl | TriggerZones$ Battlefield | Execute$ TrigAttach | OptionalDecider$ You | TriggerDescription$ Whenever a creature enters the battlefield under an opponent's control, you may attach CARDNAME to that creature.
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.OppCtrl | TriggerZones$ Battlefield | Execute$ TrigAttach | OptionalDecider$ You | TriggerDescription$ Whenever a creature enters the battlefield under an opponent's control, you may attach CARDNAME to that creature.
|
||||||
SVar:TrigAttach:DB$ Attach | Cost$ 0 | Defined$ TriggeredCard
|
SVar:TrigAttach:DB$ Attach | Cost$ 0 | Defined$ TriggeredCard
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/prison_term.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/prison_term.jpg
|
||||||
Oracle:Enchant creature\nEnchanted creature can't attack or block, and its activated abilities can't be activated.\nWhenever a creature enters the battlefield under an opponent's control, you may attach Prison Term to that creature.
|
Oracle:Enchant creature\nEnchanted creature can't attack or block, and its activated abilities can't be activated.\nWhenever a creature enters the battlefield under an opponent's control, you may attach Prison Term to that creature.
|
||||||
@@ -2,7 +2,7 @@ Name:Rackling
|
|||||||
ManaCost:4
|
ManaCost:4
|
||||||
Types:Artifact Creature Construct
|
Types:Artifact Creature Construct
|
||||||
PT:2/2
|
PT:2/2
|
||||||
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Player.Opponent | IsPresent$ Card.YouDontCtrl | PresentZone$ Hand | PresentCompare$ LT3 | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of each opponent's upkeep, CARDNAME deals X damage to that player, where X is 3 minus the number of cards in his or her hand.
|
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Player.Opponent | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of each opponent's upkeep, CARDNAME deals X damage to that player, where X is 3 minus the number of cards in his or her hand.
|
||||||
SVar:TrigDamage:AB$ DealDamage | Cost$ 0 | Defined$ TriggeredPlayer | NumDmg$ X | References$ X
|
SVar:TrigDamage:AB$ DealDamage | Cost$ 0 | Defined$ TriggeredPlayer | NumDmg$ X | References$ X
|
||||||
SVar:X:TriggeredPlayer$CardsInHand/NMinus.3
|
SVar:X:TriggeredPlayer$CardsInHand/NMinus.3
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/rackling.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/rackling.jpg
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Name:Thunderstaff
|
Name:Thunderstaff
|
||||||
ManaCost:3
|
ManaCost:3
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
S:Mode$ PreventDamage | Target$ You | Source$ Creature.YouDontCtrl | CombatDamage$ True | Amount$ 1 | CheckSVar$ X | SVarCompare$ EQ1 | Description$ As long as CARDNAME is untapped, if a creature would deal combat damage to you, prevent 1 of that damage.
|
S:Mode$ PreventDamage | Target$ You | Source$ Creature | CombatDamage$ True | Amount$ 1 | CheckSVar$ X | SVarCompare$ EQ1 | Description$ As long as CARDNAME is untapped, if a creature would deal combat damage to you, prevent 1 of that damage.
|
||||||
A:AB$ PumpAll | Cost$ 2 T | ValidCards$ Creature.attacking | NumAtt$ +1 | SpellDescription$ Attacking creatures get +1/+0 until end of turn.
|
A:AB$ PumpAll | Cost$ 2 T | ValidCards$ Creature.attacking | NumAtt$ +1 | SpellDescription$ Attacking creatures get +1/+0 until end of turn.
|
||||||
SVar:X:Count$Valid Card.Self+untapped
|
SVar:X:Count$Valid Card.Self+untapped
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/thunderstaff.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/thunderstaff.jpg
|
||||||
|
|||||||
Reference in New Issue
Block a user