- Joined
- Nov 21, 2008
- Messages
- 316
(not the problem)This is the trigger which replaces the unit the first time. the second trigger is the problem. when the unit loses the item another unit is born from it and the item it was suppose to drop stays in inventory. thus making 2 troll survivors.
-
Troll Axethrower
-
Events
-
Unit - A unit Uses an item
-
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to |cffff8c00Battle Axe|r
-
-
Actions
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
Set Items[(Integer A)] = (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
-
-
-
Unit - Replace (Triggering unit) with a Troll Axe Thrower using The old unit's relative life and mana
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
Hero - Create Items[(Integer A)] and give it to (Last replaced unit)
-
-
-
Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))
-
-
-
Axe Drop
-
Events
-
Unit - A unit Loses an item
-
-
Conditions
-
(Unit-type of (Hero manipulating item)) Equal to Troll Axe Thrower
-
And - All (Conditions) are true
-
Conditions
-
(Item being manipulated) Equal to (Item carried by (Triggering unit) of type |cffff8c00Battle Axe|r)
-
-
-
-
Actions
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
Set Items[(Integer A)] = (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
-
-
-
Unit - Replace (Triggering unit) with a Troll Survivor using The old unit's relative life and mana
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
Hero - Create Items[(Integer A)] and give it to (Last replaced unit)
-
-
-
Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))
-
-