- Joined
- Jan 19, 2010
- Messages
- 393
Pls help me with leaks here thx
-
HashTable
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Hashtable - Create a hashtable
-
Set Hashtable = (Last created hashtable)
-
-
-
Heal start
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Heal
-
-
Actions
-
Hashtable - Save Handle Of(Target unit of ability being cast) as (Key target) of (Key (Triggering unit)) in Hashtable
-
Unit Group - Add (Triggering unit) to Casters
-
Trigger - Turn on Heal Loop <gen>
-
-
-
Heal Loop
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Heal
-
-
Actions
-
Unit Group - Pick every unit in Casters and do (Actions)
-
Loop - Actions
-
Set LifeMana[1] = ((Max life of (Load (Key target) of (Key (Picked unit)) in Hashtable)) - (Life of (Load (Key target) of (Key (Picked unit)) in Hashtable)))
-
Set LifeMana[2] = (Mana of (Picked unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
LifeMana[1] Greater than ((Real((Level of Heal for (Picked unit)))) x 100.00)
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
LifeMana[2] Less than ((Real((Level of Heal for (Picked unit)))) x 100.00)
-
-
Then - Actions
-
Unit - Set life of (Load (Key target) of (Key (Picked unit)) in Hashtable) to ((Life of (Load (Key target) of (Key (Picked unit)) in Hashtable)) + LifeMana[2])
-
Unit - Set mana of (Picked unit) to (LifeMana[2] - LifeMana[2])
-
Unit Group - Remove (Picked unit) from Casters
-
-
Else - Actions
-
Set XXXXX = ((Real((Level of Heal for (Picked unit)))) x 100.00)
-
Unit - Set life of (Load (Key target) of (Key (Picked unit)) in Hashtable) to ((Life of (Load (Key target) of (Key (Picked unit)) in Hashtable)) + XXXXX)
-
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - XXXXX)
-
Unit Group - Remove (Picked unit) from Casters
-
-
-
-
Else - Actions
-
Unit - Set life of (Load (Key target) of (Key (Picked unit)) in Hashtable) to ((Life of (Load (Key target) of (Key (Picked unit)) in Hashtable)) + LifeMana[1])
-
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - LifeMana[1])
-
Unit Group - Remove (Picked unit) from Casters
-
-
-
-
-
-