I made this trigger, which is meant to have a % chance on attack to restore mana to allies, and I was wondering if it leaked at all;
I've heard of special effect leaks, but I'm curious if it still pertains to picked unit spots. Also, if there any other problems with my trigger you can let me know, cause I'm still a rookie. Thanks
Trigger:
- Events
- Unit - A unit is attacked
- Conditions
- (Level of *Skill* for (Attacking Unit)) not equal to 0
- Actions
- Set TempPoint = (Position of Attacking Unit)
- Set TempGroup = (Units within 800.00 of TempPoint)
- Custom Script: call RemoveLocation (udg_TempPoint)
- If (all conditions are True) then do (Then Actions) else do (Else Actions)
- If-Conditions
- (Random integer number between 1 and 100) less than or equal to 5
- Then-Actions
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Unit - Set mana of (Picked unit) to ((Percentage mana of (Picked unit)) + 200.00)
- Special Effect - Create a special effect at (Position of (Picked unit)) using *in game effect*
- Special Effect - Destroy (Last created special effect)
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Else-Actions
- If-Conditions
- Custom Script: call DestroyGroup (udg_TempGroup)
I've heard of special effect leaks, but I'm curious if it still pertains to picked unit spots. Also, if there any other problems with my trigger you can let me know, cause I'm still a rookie. Thanks