Hello guys, i tried to make the Soul Rip ability that "deal 18/22/26/30 damages for every unit around the target, max 10/12/14/16 units". But seem like my trigger cause some error that i cant find it
please some one help me!!
(When i added float texts: it always appear 150!)

(When i added float texts: it always appear 150!)
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to (==) Soul Rip
-
-
Actions
-
Unit Group - Remove all units from Soul_Rip_Count
-
Set AACaster = (Triggering unit)
-
Set AATarget = (Target unit of ability being cast)
-
Set AALoc1 = (Position of (Target unit of ability being cast))
-
Set AAGroup1 = (Random (14 + (4 x (Level of Soul Rip for AACaster))) units from (Units within 1300.00 of AALoc1 matching ((((Matching unit) is A structure) Equal to (==) False) and (((Matching unit) is alive) Equal to (==) True))))
-
Unit Group - Pick every unit in AAGroup1 and do (Actions)
-
Loop - Actions
-
Set AALoc2 = (Position of (Picked unit))
-
Unit Group - Add (Picked unit) to Soul_Rip_Count
-
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((AATarget belongs to an ally of (Owner of AACaster)) Equal to (==) True) or (AATarget Equal to (==) AACaster)
-
-
Then - Actions
-
Set AAInteger1 = (Number of units in Soul_Rip_Count)
-
Set AAReal = ((14.00 + (4.00 x (Real((Level of Soul Rip for AACaster))))) x (Real(AAInteger)))
-
Unit - Set life of AATarget to ((Life of AATarget) + ((14.00 + (4.00 x (Real((Level of Soul Rip for AACaster))))) x (Real(AAInteger))))
-
Custom script: call RemoveLocation(udg_AALoc2)
-
-
Else - Actions
-
Set AAInteger1 = (Number of units in Soul_Rip_Count)
-
Set AAReal = ((14.00 + (4.00 x (Real((Level of Soul Rip for AACaster))))) x (Real(AAInteger)))
-
Unit - Cause AACaster to damage AATarget, dealing ((14.00 + (4.00 x (Real((Level of Soul Rip for AACaster))))) x (Real(AAInteger))) damage of attack type Spells and damage type Magic
-
Custom script: call RemoveLocation(udg_AALoc2)
-
-
-
-
Custom script: call DestroyGroup (udg_AAGroup1)
-
Custom script: call RemoveLocation(udg_AALoc1)
-
Set AACaster = No unit
-
Set AATarget = No unit
-