mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
- Allow AI priority modification (may be useful for more cards, will update later).
This commit is contained in:
@@ -881,6 +881,9 @@ public class AiController {
|
|||||||
if (source.isCreature()) {
|
if (source.isCreature()) {
|
||||||
p += 1;
|
p += 1;
|
||||||
}
|
}
|
||||||
|
if (source.hasSVar("AIPriorityModifier")) {
|
||||||
|
p += Integer.parseInt(source.getSVar("AIPriorityModifier"));
|
||||||
|
}
|
||||||
// don't play equipments before having any creatures
|
// don't play equipments before having any creatures
|
||||||
if (source.isEquipment() && noCreatures) {
|
if (source.isEquipment() && noCreatures) {
|
||||||
p -= 9;
|
p -= 9;
|
||||||
|
|||||||
@@ -4,5 +4,7 @@ Types:Enchantment
|
|||||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.YouCtrl | TriggerZones$ Battlefield | Execute$ TrigGainLife | TriggerDescription$ Whenever a creature enters the battlefield under your control, you gain life equal to its toughness.
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.YouCtrl | TriggerZones$ Battlefield | Execute$ TrigGainLife | TriggerDescription$ Whenever a creature enters the battlefield under your control, you gain life equal to its toughness.
|
||||||
SVar:TrigGainLife:DB$GainLife | Defined$ You | LifeAmount$ X | References$ X
|
SVar:TrigGainLife:DB$GainLife | Defined$ You | LifeAmount$ X | References$ X
|
||||||
SVar:X:TriggeredCard$CardToughness
|
SVar:X:TriggeredCard$CardToughness
|
||||||
|
SVar:PlayMain1:TRUE
|
||||||
|
SVar:AIPriorityModifier:9
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/angelic_chorus.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/angelic_chorus.jpg
|
||||||
Oracle:Whenever a creature enters the battlefield under your control, you gain life equal to its toughness.
|
Oracle:Whenever a creature enters the battlefield under your control, you gain life equal to its toughness.
|
||||||
@@ -4,6 +4,8 @@ Types:Enchantment
|
|||||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature | TriggerZones$ Battlefield | Execute$ TrigDamage | OptionalDecider$ TriggeredCardController | TriggerDescription$ Whenever a creature enters the battlefield, that creature's controller may have it deal damage equal to its power to any target of their choice.
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature | TriggerZones$ Battlefield | Execute$ TrigDamage | OptionalDecider$ TriggeredCardController | TriggerDescription$ Whenever a creature enters the battlefield, that creature's controller may have it deal damage equal to its power to any target of their choice.
|
||||||
SVar:TrigDamage:DB$ DealDamage | ValidTgts$ Creature,Player,Planeswalker | TgtPrompt$ Select any target | NumDmg$ X | References$ X | DamageSource$ TriggeredCard | TargetingPlayer$ TriggeredCardController
|
SVar:TrigDamage:DB$ DealDamage | ValidTgts$ Creature,Player,Planeswalker | TgtPrompt$ Select any target | NumDmg$ X | References$ X | DamageSource$ TriggeredCard | TargetingPlayer$ TriggeredCardController
|
||||||
SVar:X:TriggeredCard$CardPower
|
SVar:X:TriggeredCard$CardPower
|
||||||
|
SVar:PlayMain1:TRUE
|
||||||
|
SVar:AIPriorityModifier:9
|
||||||
AI:RemoveDeck:Random
|
AI:RemoveDeck:Random
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/pandemonium.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/pandemonium.jpg
|
||||||
Oracle:Whenever a creature enters the battlefield, that creature's controller may have it deal damage equal to its power to any target of their choice.
|
Oracle:Whenever a creature enters the battlefield, that creature's controller may have it deal damage equal to its power to any target of their choice.
|
||||||
|
|||||||
Reference in New Issue
Block a user