• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Dummy Abilities (to activate Jass)

Status
Not open for further replies.
Level 3
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
 
Status
Not open for further replies.
Top