Hello I just made a new passive spell and got spell problem with it. The effect of this passiv skill uses a lightning. The problem is sometimes when few units attacks my unit with this passive skill it creats few lightning effects but not delates all. Hero is my trigger maybe you can find a mistake pls help!
-
BloodLust
-
Events
- Unit - A unit is attacked
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Level of BloodSuck for (Attacking unit)) bigger than als 0
- ((Level of BloodSuck for (Attacked unit)) equal not to 0) and ((Random integer number between 1 and 12) equal to 1)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Attacking unit) has buff BloodLust ) Equal to True
-
Then - Actions
- Set BL_Caster = (Attacking unit)
- Set BL_Target = (Attacked unit)
-
Else - Actions
- Set BL_Caster = (Attacked unit)
- Set BL_Target = (Attacking unit)
-
If - Conditions
- Unit - Set life of BL_Caster to ((life of BL_Caster) + (6.50 x (Real((Level of BloodSuck for BL_Caster)))))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- BL_Caster Equal to (Attacking unit)
-
Then - Actions
- Special Effect - Create a special effect attached to the overhead of BL_Target using war3mapImported\VampiricAuraTarget.mdx
- Special Effect - Destroy (Last created special effect)
- Skip remaining actions
- Else - Aktionen
-
If - Conditions
- Unit - Cause BL_Caster to damage BL_Target, dealing (6.50 x (Real((Level of BloodSuck for BL_Caster)))) damage of attack type Normal and damage type Normal
- Set BL_Point[1] = (Position of BL_Caster)
- Set BL_Point[2] = (Position of BL_Target)
- Lightning - Create a Life drain lightning effect from source BL_Point[1] to target BL_Point[2]
- Lightning - Change color of (Last created lightning effect) to (3.00 1.00 1.00) with 2.00 alpha
- Special Effect - Create a special effect attached to the overhead of BL_Target using war3mapImported\VampiricAuraTarget.mdx
- Special Effect - Destroy (Last created special effect)
- Wait - 1.00 seconds
- Lightning - Destroy (Last created lightning effect)
- Custom script: call RemoveLocation(udg_BL_Point[1])
- Custom script: call RemoveLocation(udg_BL_Point[2])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events