Hello i'm trying to fix leaks in this trigger but i'm blocked :
Someone has an idea please ?
Thanks,
Exum
-
Lightning
-
Events
-
Unit - A unit casts a spell
-
-
Conditions
-
(Ability being cast) Equal to Lightning
-
-
Actions
-
Set PointLightning = (Target point of ability being cast)
-
Set PointCastLightning = (Position of (Casting unit))
-
Light - Create a Lightning Chain - Principal lightning effect from source PointCastLightning to target PointLightning
-
Set EffectLightning[(Player number of (Owner of (Triggering unit)))] = (Last created lightning effect)
-
Special Effect - Create a special effect at PointLightning using Abilities\Weapons\Bolt\BoltImpact.mdl
-
Group units - Pick every unit in (Units in (Entire map) matching ((((Distance between (Position of (Matching unit)) and PointCastLightning) + (Distance between (Position of (Matching unit)) and PointLightning)) Less or equal to 20.00) and (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit) Equal to TRUE) and do (Actions)
-
Then - Actions
-
Unit - Cause (Triggering unit) to damage (Picked unit), dealing 50.00 damage of attack type Sorts and damage type Foudre
-
Unit - Cause (Triggering unit) to damage (Picked unit), dealing (1.00 x (Real((Agility of (Triggering unit) (Inclure bonuses))))) damage of attack type Sorts and damage type Foudre
-
-
-
Set GroupLightning = (Units within 100.00 of PointCastLightning matching (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to TRUE))
-
Groupe units - Pick every unit in GroupLightning and do (Actions)
-
Boucle - Actions
-
Unit - Cause (Triggering unit) to damage (Picked unit), dealing 200.00 damage of attack type Sorts and damage type Foudre
-
Unit - Cause (Triggering unit) to damage (Picked unit), dealing (4.00 x (Real((Agility of (Triggering unit) (Inclure bonuses))))) damage of attack type Sorts and damage type Foudre
-
-
-
Custom script: call DestroyGroup(udg_GroupLightning)
-
Custom script: call RemoveLocation(udg_PointLightning)
-
Custom script: call RemoveLocation(udg_PointCastLightning)
-
Wait 0.50 seconds
-
Light - Destroy EffectLightning[(Player number of (Owner of (Triggering unit)))]
-
-
-
Group units - Pick every unit in (Units in (Entire map) matching ((((Distance between (Position of (Matching unit)) and PointCastLightning) + (Distance between (Position of (Matching unit)) and PointLightning)) Less or Equal to 20.00) and (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit) Equal to TRUE) and do (Actions)
Someone has an idea please ?
Thanks,
Exum