HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Polymorph trigger problem

01-18-2007, 11:17 PM#1
mAc Chaos
I made a spell that makes polymorph permanent and it replaces the unit sheep with a normal critter that is under the control of the neutral player.

The problem is that when I test it out, the unit gets replaced by the critter, but it stays under the control of the enemy player and for some reason it's a flying sheep even though I specified that ground units should be normal sheep.
Trigger:
SHEEP
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Polymorph
Collapse Actions
Unit - Change ownership of (Target unit of ability being cast) to Neutral Passive and Change color
If (((Unit-type of (Target unit of ability being cast)) is A ground unit) Equal to True) then do (Unit - Replace (Target unit of ability being cast) with a Sheep using The old unit's relative life and mana) else do (Unit - Replace (Target unit of ability being cast) with a Flying Sheep using The old unit's relative life and mana)