mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +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()) {
|
||||
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;
|
||||
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user