Hello again, another problem it seems. This relatively simple (I think) trigger is giving me issues.
What is supposed to happen:
Unit casts spell, Dummy unit spawns on caster's position, Dummy unit (which has a hero inventory) is given a created items, Dummy unit uses the item on casting unit. Fin.
The Problem:
When the spell is cast, the item is created in the middle of the map...
Code:
Cunning Disguise
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Cunning Disguise
Actions
Set DisguisePos = (Position of Caster1)
Unit - Create 1 Dummy for (Owner of Caster1) at DisguisePos facing Default building facing degrees
Set CunningDummy = (Last created unit)
Hero - Create disguise and give it to CunningDummy
Hero - Order CunningDummy to use (Item carried by CunningDummy of type disguise) on Caster1
Custom script: call RemoveLocation(udg_DisguisePos)
Unit - Add a 2.00 second Generic expiration timer to CunningDummy
What is supposed to happen:
Unit casts spell, Dummy unit spawns on caster's position, Dummy unit (which has a hero inventory) is given a created items, Dummy unit uses the item on casting unit. Fin.
The Problem:
When the spell is cast, the item is created in the middle of the map...