• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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