Hello, the spell itself works good, but why is it killing everything instantly, no matter the HP of the picked units?
Note: It does work as intended if it hits only 1 or 2 units.
Note: It does work as intended if it hits only 1 or 2 units.
-
Fire Slash Work
-

Events
-


Game - GDD_Event becomes Equal to 0.00
-
-

Conditions
-


(Level of Fire Slash for GDD_DamageSource) Greater than 0
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Random real number between 0.00 and 1.00) Less than or equal to FireSlash_Chance[(Level of Fire Slash for GDD_DamageSource)]
-
-



Then - Actions
-




Animation - Play GDD_DamageSource's Spell Slam Third animation
-




Set VariableSet FireSlash_Damage = ((Base Damage of GDD_DamageSource for weapon index 0) + (Strength of GDD_DamageSource (Include bonuses)))
-




Set VariableSet FireSlash_CPoint = (Position of GDD_DamageSource)
-




Set VariableSet FireSlash_Group = (Units within 200.00 of FireSlash_CPoint.)
-




Unit Group - Pick every unit in FireSlash_Group and do (Actions)
-





Loop - Actions
-






Set VariableSet FireSlash_Target = (Picked unit)
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(FireSlash_Target is A structure) Equal to False
-








(FireSlash_Target is Mechanical) Equal to False
-








(Owner of FireSlash_Target) Equal to Player 12 (Brown)
-








(FireSlash_Target is alive) Equal to True
-
-







Then - Actions
-








Unit - Cause GDD_DamageSource to damage FireSlash_Target, dealing (Real(FireSlash_Damage)) damage of attack type Spells and damage type Normal
-
-







Else - Actions
-
-
-
-




Custom script: call RemoveLocation(udg_FireSlash_CPoint)
-




Custom script: call DestroyGroup(udg_FireSlash_Group)
-
-



Else - Actions
-
-
-
