- Joined
- Sep 17, 2009
- Messages
- 1,297
Im using this code, to swap abilities (which are passive coded with trigger):
Apparently it isnt working, Add+Remove blocks each other. Any idea how to make this working?
Note: Alternative (Buff using) abilities would not be good enough, i have to do this with triggers.
Note2: SPELL1 and SPELL2 both created from channel
Help will be appreciated
JASS:
if GetSpellAbilityId() == SPELL1
UnitRemoveAbility(u, SPELL1)
UnitAddAbility(u, SPELL2)
(...)
elseif GetSpellAbilityId() == SPELL2
UnitRemoveAbility(u, SPELL2)
UnitAddAbility(u, SPELL1)
(...)
Apparently it isnt working, Add+Remove blocks each other. Any idea how to make this working?
Note: Alternative (Buff using) abilities would not be good enough, i have to do this with triggers.
Note2: SPELL1 and SPELL2 both created from channel
Help will be appreciated