recently ive been wondering about memory leaks, and i would like to ask, does item's leak? if it doesnt, this code should be clean right?
-
unit uses an item
-
Events
-
Unit - A unit Uses an item
-
-
Conditions
-
Actions
-
Set Temp_Item = (Item being manipulated)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of Temp_Item) Equal to Woodcutting Axe
-
-
Then - Actions
-
Set Temp_Item = No item
-
Set Temp_Unit = (Hero manipulating item)
-
Animation - Change Temp_Unit's animation speed to 50.00% of its original speed
-
Animation - Play Temp_Unit's attack animation
-
Set Temp_Unit = No unit
-
Wait 2.00 seconds
-
Set Temp_Unit = (Hero manipulating item)
-
Hero - Create Piece of Wood. and give it to Temp_Unit
-
Animation - Reset Temp_Unit's animation
-
Set Temp_Unit = No unit
-
-
Else - Actions
-
-
-