- Joined
- Jul 15, 2007
- Messages
- 36
Hi all;
Just running into a problem: If I have more than one custom ability based off the same normal ability, and have them on the same unit, whenever I use one of those abilities, the first one in the "abilities" list goes off, along with it's associated trigger.
I.E. if I have a "Drop" ability (makes a unit drop all it's items) and a "Sell Ability" (Destroys the unit) then only one of these will work, no matter which is "used"
Is there a solution to this other than the obvious, base them off different spells?
Yes, the trigger is running off the "unique" rawcode, the event is "EVENT_UNIT_SPELL_CAST", with the condition "return (GetSpellAbilityId() == 'A009')
Cheers
Just running into a problem: If I have more than one custom ability based off the same normal ability, and have them on the same unit, whenever I use one of those abilities, the first one in the "abilities" list goes off, along with it's associated trigger.
I.E. if I have a "Drop" ability (makes a unit drop all it's items) and a "Sell Ability" (Destroys the unit) then only one of these will work, no matter which is "used"
Is there a solution to this other than the obvious, base them off different spells?
Yes, the trigger is running off the "unique" rawcode, the event is "EVENT_UNIT_SPELL_CAST", with the condition "return (GetSpellAbilityId() == 'A009')
Cheers