As title says, massive lags follow my abilities, but only when I use the for the first time. All latter usages will not cause any problems. I remove all leaks (or try to at least). Example of a trigger below:
-
Rampage
-

Events
-


Unit - A unit Finishes the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Rampage
-
-

Actions
-


Set Berserker = (Casting unit)
-


Set BER3_Number = (Number of All buffs considered Magical and physical on Berserker (Include expiration timers, Exclude auras))
-


Unit - Remove All buffs considered Magical and physical from Berserker (Include expiration timers, Exclude auras)
-


Unit - Set life of Berserker to ((Life of Berserker) + ((10.00 + (5.00 x (Real((Level of Ability being cast for Berserker))))) x (Real(BER3_Number))))
-


Unit - Add Rampage(movespeed) to Berserker
-


Unit - Set level of Rampage(movespeed) for Berserker to BER3_Number
-
-



