garion992
TH.net Regular
- Reaction score
- 17
Why does this lags, cause of casting too much spells at once?
Code:
Amulet of Fire
Events
Unit - A unit Is attacked
Conditions
((Attacking unit) has an item of type |c00000080Fire Amulet|r) Equal to True
Actions
Set TempInt = (Random integer number between 1 and 7)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TempInt Equal to 3
Then - Actions
Set Distance = (Facing of (Attacking unit))
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set Distance = (Distance + 30.00)
Unit - Create 1 Damage Circle Dummy for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Distance degrees
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of (Last created unit)) offset by 256.00 towards Distance degrees)
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Else - Actions