Drunken_God
Hopes to get back into Mapmaking with SC2 :)
- Reaction score
- 106
Ive made a shadow hunter with an ability that links him with a target and if he now gets damage he gets healed by X percent of that damage and the target gets X percent of that damage
Now here is the problem if i cast my spell on a unit everything works fine but if i use now healing wave wc3 crashes
heres my damage trigger
Now here is the problem if i cast my spell on a unit everything works fine but if i use now healing wave wc3 crashes
heres my damage trigger
Code:
ShadowLinkTakesDamage
Events
Conditions
(Damage taken) Greater than 0.00
Actions
Trigger - Turn off (This trigger)
For each (Integer A) from 1 to 200, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to SL_Caster[(Integer A)]
Then - Actions
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((Damage taken) x 0.30))
Unit - Cause (Triggering unit) to damage SL_Target[(Integer A)], dealing ((Damage taken) x 0.30) damage of attack type Spells and damage type Normal
Set temppoint = (Position of (Triggering unit))
Set temppoint2 = (Position of SL_Target[(Integer A)])
Lightning - Create a Finger of Death lightning effect from source temppoint to target temppoint2
Custom script: call RemoveLocation(udg_temppoint)
Custom script: call RemoveLocation(udg_temppoint2)
Set SL_LightningCount = (SL_LightningCount + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
SL_LightningCount Equal to 200
Then - Actions
Set SL_LightningCount = 0
Else - Actions
Set SL_LightningEffect[SL_LightningCount] = (Last created lightning effect)
Else - Actions
Trigger - Turn on (This trigger)