• 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] UnitMakeAbilityPermanent

Status
Not open for further replies.
Level 22
Joined
Nov 14, 2008
Messages
3,256
The native below, does it make buffs permanent to a target? Then you just call the native again but set it false to make them not permanent and remove the buff?
JASS:
native UnitMakeAbilityPermanent takes unit whichunit, boolean permanent, integer abilityid returns boolean

Solved
 
Last edited:
Level 22
Joined
Nov 14, 2008
Messages
3,256
Found the answer at WC3C

MakeUnitAbilityPermanent: This function enables you to make abilities stay on units when they use any kind of morphing spells. If you're using chaos for example you should make all abilities permanent that should stay on the unit. For spells that have sub abilities like the spellbook or the effect ability of orbs you also have to make these sub abilities permanent if you don't want to lose them.
 
Status
Not open for further replies.
Top