- Joined
- Jun 10, 2013
- Messages
- 473
hey does this trigger leak because when the ability is used lags start to happen
-
Withering
-
Events
-
Unit - A unit Starts the effect of an ability
-
Conditions
-
(Ability being cast) Equal to Withering
-
Actions
-
Set TempUnit = (Triggering unit)
-
Set tempReal = 225.00
-
Set AbilityAdd = Withering -Armor,-speed
-
Set AbilityAdd2 = Withering, -Damage
-
Set tempPlayer = (Owner of TempUnit)
-
Set TempPoint = (Target point of ability being cast)
-
Unit - Create 1 Dummy Spellcaster for tempPlayer at TempPoint facing 0.00 degrees
-
Set TempUnit2 = (Last created unit)
-
Unit - Add AbilityAdd to TempUnit2
-
Unit - Set level of AbilityAdd for TempUnit2 to (Level of Withering for TempUnit)
-
Unit - Add AbilityAdd2 to TempUnit2
-
Unit - Set level of AbilityAdd2 for TempUnit2 to (Level of Withering for TempUnit)
-
Unit - Add a 2.00 second Water Elemental expiration timer to TempUnit2
-
Set tempGroup1 = (Units within tempReal of TempPoint matching ((((Owner of (Matching unit)) is an enemy of tempPlayer) Equal to True) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in tempGroup1 and do (Actions)
-
Loop - Actions
-
Unit - Order TempUnit2 to Neutral Alchemist - Acid Bomb (Picked unit)
-
Unit - Order TempUnit2 to Human Priest - Inner Fire (Picked unit)
-
Custom script: call DestroyGroup(udg_tempGroup1)
-
Custom script: call RemoveLocation(udg_TempPoint)
-
Last edited by a moderator: