HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

UnitMakeAbilityPermanent?

07-20-2009, 11:16 PM#1
Cheezeman
Does anyone know what UnitMakeAbilityPermanent does?
Collapse JASS:
native UnitMakeAbilityPermanent takes unit whichUnit, boolean permanent, integer abilityId returns boolean
07-21-2009, 12:02 AM#2
Anitarf
The main use for this is to make an ability persist on a unit even if that unit morphs to a different unit type. I'm not aware of any other effects this native might have.
07-21-2009, 12:04 AM#3
Blubb-Tec
yep, when you morph the unit or chaos-transform it, the ability stays. its needed for cases like that, there might be some more cases(hex maybe?), don't know too much about it. but this is the general use of it.
07-21-2009, 02:28 AM#4
ToukoAozaki
Upgrading units/buildings also cause trigger-added abilities go away. Use that native to prevent that happen.
07-21-2009, 11:45 AM#5
Cheezeman
Thanks guys, case closed