Page 1 of 1

Keywords?

PostPosted: 06 Jul 2012, 21:23
by mcrawford620
I'm looking in CardFactoryUtil.evaluateCreature() and it references a ton of card.hasKeyword().
I was trying to add something to check for cards like Phantasmal Bear that die when targeted with a spell.

Code: Select all
T:Mode$ BecomesTarget | ValidTarget$ Card.Self | TriggerZones$ Battlefield | Execute$ TrigSac | TriggerDescription$ When CARDNAME becomes the target of a spell or ability, sacrifice it.
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | Defined$ Self
SVar:Targeting:Dies
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/phantasmal_bear.jpg
SetInfo:M12|Common|http://magiccards.info/scans/en/m12/70.jpg
Oracle:When Phantasmal Bear becomes the target of a spell or ability, sacrifice it.
Should I add a K: keyword to the card script? Or use something else in evaluateCreature() to tell the AI that these creatures are less valuable?

Re: Keywords?

PostPosted: 06 Jul 2012, 21:41
by friarsol
You can probably just use the same Targeting SVar check you are using in other places. That makes the most sense to me.

Re: Keywords?

PostPosted: 06 Jul 2012, 23:17
by ArsenalNut
friarsol wrote:You can probably just use the same Targeting SVar check you are using in other places. That makes the most sense to me.
This Targting SVar seems like it would also be useful in situation where the AI should target an opponents creature to get rid of it. For instance, I saw the AI use a Vapor Snag to return my Grand Architect when I also had a Phantasmal Image that was cloning the Grand Architect.