- Allow AI priority modification (may be useful for more cards, will update later).

This commit is contained in:
Agetian
2018-12-04 10:27:11 +03:00
parent 0921fa3e67
commit de3d60e9c5
3 changed files with 7 additions and 0 deletions

View File

@@ -881,6 +881,9 @@ public class AiController {
if (source.isCreature()) {
p += 1;
}
if (source.hasSVar("AIPriorityModifier")) {
p += Integer.parseInt(source.getSVar("AIPriorityModifier"));
}
// don't play equipments before having any creatures
if (source.isEquipment() && noCreatures) {
p -= 9;

View File

@@ -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.
SVar:TrigGainLife:DB$GainLife | Defined$ You | LifeAmount$ X | References$ X
SVar:X:TriggeredCard$CardToughness
SVar:PlayMain1:TRUE
SVar:AIPriorityModifier:9
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.

View File

@@ -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.
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:PlayMain1:TRUE
SVar:AIPriorityModifier:9
AI:RemoveDeck:Random
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.