HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Things that UnitMakeAbilityPermanent Does not Do

12-27-2003, 08:02 PM#1
Vexorian
I am still trying to find an use for that function, I tried these stuff:

- It won't work to make an item ability to stack
- It won't prevent the ability for being removed
- It won't prevent a hero ability from being unlearned
- It won't make an ability timer to last forever
- It won't make an added hero ability learnable

The only thing that I found is that it returns true if the unit has the ability
12-27-2003, 09:00 PM#2
AIAndy
Well, Blizzard uses it after adding the Call To Arms ability to the first Townhall. So to test it one could remove that line of code and then look what is different about the Townhall.
12-27-2003, 09:22 PM#3
Vexorian
Well, that is a start, perhaps this has something to do with the Militia nerf
12-27-2003, 09:34 PM#4
Starcraftfreak
Quote:
Taken from 1.13 List of changes
Militia can now only be created from a player's starting Town Hall, but they can still be created from any of the player's Keeps or Castles.
I think it has to do something with that.

http://www.blizzard.com/support/?id=mwr0769p
12-27-2003, 09:47 PM#5
AIAndy
Well, they just removed that ability from the unit type Townhall and then add it manually to the Townhall that is created at map init. But the question is why that native needs to be used on that afterwards. Maybe that prevents the ability from disappearing when you start upgrading the Townhall and then cancel it.
12-27-2003, 11:40 PM#6
KaTTaNa
- It does not make a buff last forever.

Note: If you see little point in the above fact, look at the implementation of UnitRemoveBuffBJ.