Well, the ability is actually a custom Possession. The only different thing is that I want the Target Unit to have a ability that can replace, again, with the Possession casting unit. And, since it's not a Hero, but it have a inventory, I tried this:
Anyone can help at this?
-
Body Swap
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Body Swap
-
Actions
- Unit - Add Leave Body to (Target unit of ability being cast)
- Unit - Set level of Leave Body for (Target unit of ability being cast) to 1
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
- Set LeaveBodyItem[(Integer A)] = (Item carried by Amani Shadow Councilor 0051 <gen> in slot (Integer A))
-
Loop - Actions
-
Events
-
Leave Body
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Leave Body
-
Actions
- Unit - Replace (Casting unit) with a Amani Shadow Councilor using The old unit's life and mana
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
- Hero - Give LeaveBodyItem[(Integer A)] to (Casting unit)
-
Loop - Actions
-
Events
Anyone can help at this?