I'm making an ability which targets a unit. The caster disappears and then reappears next to the target, "blink style", and is meant to do 75 / 100 / 125 damage depending on the level of the ability. Here's the code:
Everything works great and looks really nice, but the targeted unit doesn't take any damage from the actual ability... any ideas? .
Code:
hayyy
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Ice Warp
Actions
Set IB_Multiplier = (Level of Ice Warp for (Triggering unit))
Set IW_point = (Position of (Triggering unit))
Special Effect - Create a special effect at IW_point using war3mapImported\frost warp.mdx
Custom script: call RemoveLocation(udg_IW_point)
Unit - Move (Triggering unit) instantly to (Position of (Target unit of ability being cast))
Set IW_point = (Position of (Triggering unit))
Special Effect - Create a special effect at IW_point using war3mapImported\frost warp.mdx
Custom script: call RemoveLocation(udg_IW_point)
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (50.00 + (25.00 x IW_multiplier)) damage of attack type Hero and damage type Normal
Everything works great and looks really nice, but the targeted unit doesn't take any damage from the actual ability... any ideas? .