Nherwyziant
Be better than you were yesterday :D
- Reaction score
- 96
I have this trigger part on my spell. This spell is a passive spell, when a unit is damaged, this will happen. .u is the damage source and rawcode is the spell and .u us the cooldown spell.
[lJASS]call UnitRemoveAbility(.u,RAWCODE)[/lJASS]
[lJASS]call UnitAddAbility(.u,COOLDOWN)[/lJASS]
after a few sec, it is followed by
[lJASS]call UnitRemoveAbility(.u,COOLDOWN)[/lJASS]
[lJASS]call UnitAddAbility(.u,RAWCODE)[/lJASS]
but sometimes, the second trig doesn't remove and add, but it do runs. Why?
EDIT: I think the hero has something to do with this, cuz this spell is being learned(RAWCODE).
EDIT: Cuz i tried removing the part with adding and removing the cooldown, and the rawcode does not returned after removing but it do runs cuz i use messages.
[lJASS]call UnitRemoveAbility(.u,RAWCODE)[/lJASS]
[lJASS]call UnitAddAbility(.u,COOLDOWN)[/lJASS]
after a few sec, it is followed by
[lJASS]call UnitRemoveAbility(.u,COOLDOWN)[/lJASS]
[lJASS]call UnitAddAbility(.u,RAWCODE)[/lJASS]
but sometimes, the second trig doesn't remove and add, but it do runs. Why?
EDIT: I think the hero has something to do with this, cuz this spell is being learned(RAWCODE).
EDIT: Cuz i tried removing the part with adding and removing the cooldown, and the rawcode does not returned after removing but it do runs cuz i use messages.