- Joined
- Sep 9, 2014
- Messages
- 24
Hello,
I hope someone here can help with me a really strange behaviour.
I have theses 2 simple triggers :
TRIGGER 1 - RENEW CASTING
[EVENT]
A Unit Start the effect of an ability
[CONDITIONS]
Ability being cast equal to "Renew"
[ACTIONS]
Add - target unit of ability being cast to "renew_group"
---------------------------------------------------------------------------------
TRIGGER 2 - RENEW HEALING
[EVENT]
Every 1.00 second of game time
[ACTIONS]
Pick every unit in "renew_group" and do
if Picked unit has buff "Renew" equal TRUE then
set life of picked unit to life of picked unit +30
else
remove unit from renew_group
For a strange reason, sometimes the second trigger sudenly doesn't workanymore.
I added debugging texts to be sure, that only the second one fails.
It fails after a random amount of time, usually after 3 - 15 minutes (spell casted between 4 and 18 times).
Once it has failed, it doesn't work again for the rest of the game (even if spell is casted again 10 times), the unit is always added to group (proven by my debugging message), but then the periodic part doesn't do anything (but it does show a message at the start of the periocdic trigger, so this is the part with the "Pick and If" that sudenly fails).
It can also fail while the spell is on going (the buff lasts 15 seconds), it sudenly stops.
Does this mean I have a leak somewhere ?
Any ideas ?
I hope someone here can help with me a really strange behaviour.
I have theses 2 simple triggers :
TRIGGER 1 - RENEW CASTING
[EVENT]
A Unit Start the effect of an ability
[CONDITIONS]
Ability being cast equal to "Renew"
[ACTIONS]
Add - target unit of ability being cast to "renew_group"
---------------------------------------------------------------------------------
TRIGGER 2 - RENEW HEALING
[EVENT]
Every 1.00 second of game time
[ACTIONS]
Pick every unit in "renew_group" and do
if Picked unit has buff "Renew" equal TRUE then
set life of picked unit to life of picked unit +30
else
remove unit from renew_group
For a strange reason, sometimes the second trigger sudenly doesn't workanymore.
I added debugging texts to be sure, that only the second one fails.
It fails after a random amount of time, usually after 3 - 15 minutes (spell casted between 4 and 18 times).
Once it has failed, it doesn't work again for the rest of the game (even if spell is casted again 10 times), the unit is always added to group (proven by my debugging message), but then the periodic part doesn't do anything (but it does show a message at the start of the periocdic trigger, so this is the part with the "Pick and If" that sudenly fails).
It can also fail while the spell is on going (the buff lasts 15 seconds), it sudenly stops.
Does this mean I have a leak somewhere ?
Any ideas ?