Aura Enchantments
I know keybone attempted to do this the other day and it turned into a much larger task than he was expecting, so I figured I'd open a discussion topic regarding it.
Currently all of the logic for Auras is in enPump. Which leads to a bunch of Auras having a useless enPump inside it, just so the Targeting is properly set for what is being enchanted.
I don't have time to do this now, but I figured we could open the discussion up and we can get some ideas for the best way to do this. And if anyone was interested they could hash it out.
We should just expand the Enchant Keyword so it takes a ValidTgt. But the keyword would need to have a way for the AI to know what it should cast the Aura on.
I guess we could just have a third parameter for who the AI would prefer to target. Certain Auras can be positive for any creature, like False Demise. It either protects your creature, or steals an opponents. Which leads to maybe something like this, where the second parameter states what the card can target. And the third states what the AI wants to target.
K:Enchant:<ValidTgts>:<PreferredValid>
Just some random examples for illustrative purposes:
Currently all of the logic for Auras is in enPump. Which leads to a bunch of Auras having a useless enPump inside it, just so the Targeting is properly set for what is being enchanted.
I don't have time to do this now, but I figured we could open the discussion up and we can get some ideas for the best way to do this. And if anyone was interested they could hash it out.
We should just expand the Enchant Keyword so it takes a ValidTgt. But the keyword would need to have a way for the AI to know what it should cast the Aura on.
I guess we could just have a third parameter for who the AI would prefer to target. Certain Auras can be positive for any creature, like False Demise. It either protects your creature, or steals an opponents. Which leads to maybe something like this, where the second parameter states what the card can target. And the third states what the AI wants to target.
K:Enchant:<ValidTgts>:<PreferredValid>
Just some random examples for illustrative purposes:
- Code: Select all
False Demise
K:Enchant:Creature:Creature.nonToken
- Code: Select all
Weakness
K:Enchant:Creature:Creature.YouDontCtrl
- Code: Select all
Bloodfire Infusion
K:Enchant:CreatureYouCtrl:CreatureYouCtrl.powerGE3