• 🏆 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!

[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