- Joined
- Nov 30, 2013
- Messages
- 926
Hi guys, I making a trigger that do like this
-When a unit cast a "Throw" ability in other unit. It remove the item from the owner of casting unit and create a item into the targeted unit when the missile has hit the targeted unit
-When hitted by the Throw ability missile, It will make the targeted unit's mana restore.
Here's my problem
-After cast a throw ability in other unit. The item has created into the ground instead of created into the targeted unit's inventory.
-Haven't restore the targeted unit's mana after casting it.
-When a unit cast a "Throw" ability in other unit. It remove the item from the owner of casting unit and create a item into the targeted unit when the missile has hit the targeted unit
-When hitted by the Throw ability missile, It will make the targeted unit's mana restore.
Here's my problem
-After cast a throw ability in other unit. The item has created into the ground instead of created into the targeted unit's inventory.
-Haven't restore the targeted unit's mana after casting it.
-
Throw
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Throw
-
Actions
- Set ItemUnit = (Target unit of ability being cast)
- Item - Remove (Item carried by (Casting unit) of type Magnet Key)
- Hero - Create Magnet Key and give it to ItemUnit
- Unit - Set mana of ItemUnit to 100.00%
- Game - Display to (All players) the text: ((Name of (Owner of (Casting unit))) + ( has throw the item to + (Name of (Owner of ItemUnit))))
-
Events