NeuroToxin
New Member
- Reaction score
- 46
Alright, I made this spell, and it actually froze wc3, idk why, but it did,
Can someone look this over and tell me why?
Can someone look this over and tell me why?
Trigger:
- Siphon Life
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to (==) Siphon Life
- Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- CustomValue Greater than or equal to (>=) 1000
- Then - Actions
- Set CustomValue = 1
- Else - Actions
- Set CustomValue = (CustomValue + 1)
- If - Conditions
- Set caster[CustomValue] = (Triggering unit)
- Set targetunit[CustomValue] = (Target unit of ability being cast)
- Set damage[CustomValue] = (Level of Siphon Life for caster[CustomValue])
- Set manastolen[CustomValue] = (manastolen[CustomValue] x (Level of Siphon Life for caster[CustomValue]))
- Unit - Cause caster[CustomValue] to damage targetunit[CustomValue], dealing (Real(damage[CustomValue])) damage of attack type Spells and damage type Normal
- Unit - Set mana of targetunit[CustomValue] to ((Mana of targetunit[CustomValue]) - (Real(manastolen[CustomValue])))
- Unit - Set life of caster[CustomValue] to ((Life of caster[CustomValue]) + (Real(damage[CustomValue])))
- Unit - Set mana of caster[CustomValue] to ((Mana of caster[CustomValue]) + (Real(manastolen[CustomValue])))
- Set caster[CustomValue] = No unit
- Set targetunit[CustomValue] = No unit
- Set targetunit[CustomValue] = No unit
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events