Hellfish wrote:Rules-wise, that should actually be taken care of in checkStateEffects. It's a simple little if-clause. I believe the problem with when the aura is attached can be addressed further down the road.
Thanks for fixing checkStateEffects. I got the Attach drawback working for the human player. I haven't tested it with the AI yet, but I checked in the code.
Here's the updated script
- Dominating Licid | Open
- Name:Dominating Licid
ManaCost:1 U U
Types:Creature Licid
Text:no text
PT:1/1
A:AB$ SetState | Cost$ 1 U U | Defined$ Self | NewState$ Alternate | SubAbility$ DBAttach | SpellDescription$ CARDNAME loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature.
SVar:DBAttach:DB$ Attach | Cost$ 0 | ValidTgts$ Creature | AILogic$ GainControl
#If the value of AlternateMode isn't Flip or DoubleFaced, it will be the name of the state defined below, so you can switch to it with SetState+NewState$.The name of the first state defined is always "Original".
AlternateMode:Alternate
#Shared
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/dominating_licid.jpg
SetInfo:EXO|Rare|http://magiccards.info/scans/en/ex/30.jpg
Oracle:{1}{U}{U},
: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature. You may pay
to end this effect.\nYou control enchanted creature.
ALTERNATE
Name:Dominating Licid
ManaCost:1 U U
Colors:blue
Types:Enchantment Aura
Text:You control enchanted creature.
K:Enchant creature
A:SP$ Attach | Cost$ 0 | ValidTgts$ Creature | AILogic$ GainControl
A:AB$ SetState | Cost$ U | Defined$ Self | NewState$ Original | SpellDescription$ End this effect.
End
I tested it by disenchanting with
1) ending the effect
2)
Oblivion Ring3)
NaturalizeThe controlled creature returned to its owner in all cases. I wanted to wait till I looked at how the AI used the Attach DB before I checked in the card script.