I want to try and get a spell called 'Disguise' that changes the casting unit from its own form into an exact replica of the target unit. I've got the code i'm using here, and am basing it off the Invisiblity spell.
As i say somewhre in this code, the unit vanishes from the map, even after the 30 game time seconds are up. Any suggestions?
Code:
Disguise Trigger
Events
Unit - A unit Begins casting an ability
Conditions
((Triggering player) is in Humans) Equal to True
(Ability being cast) Equal to Disguise
Actions
Wait 2.00 game-time seconds
Unit - Replace (Triggering unit) with a (Unit-type of (Targeted unit)) using The old unit's relative life and mana
Unit - Change color of (Casting unit) to (Color of (Owner of (Targeted unit)))
Wait 30.00 game-time seconds
Unit - Replace (Triggering unit) with a (Unit-type of (Triggering unit)) using The old unit's relative life and mana
Unit - Change color of (Triggering unit) to (Color of (Owner of (Triggering unit)))
As i say somewhre in this code, the unit vanishes from the map, even after the 30 game time seconds are up. Any suggestions?