• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need Help Devising a Trigger to Keep Added Ability on Morphed Heroes

Status
Not open for further replies.
Level 18
Joined
Mar 16, 2008
Messages
721
There's an ability that can be researched and added to heroes with a trigger. When a unit uses morph ability based off demon hunter metamorphosis, it loses custom researched/added ability. Can anyone help me brainstorm a trigger to maybe re-add that ability to a unit, checking condition that it has been researched.

Thanks for reading and any input.

Also the researched/added ability can/should only be used once. Maybe that can be checked with an integer comparison condition 'ability used' 0 or 1.
 
Level 18
Joined
Mar 16, 2008
Messages
721
so i want this ability to be removed after it's used. can i remove it with normal trigger?

The ability is A043:AEsf (Call of the Damned)

JASS:
call UnitMakeAbilityPermanent(your_unit,true,A043:AEsf)
would work?
 
Status
Not open for further replies.
Top