Patch 1.31 : how to convert "ability" type to its raw code ?

Status
Not open for further replies.
Hello,

Patch 1.31 gives new natives that return "ability" type. For ex:
JASS:
native BlzGetItemAbilityByIndex takes item whichItem, integer index returns ability

However, most of old natives only use integer type (for ability id/raw code) instead.

Is there a way to convert get the raw code from a variable of type "ability" ?
For example for ability variable "Corrosive Breath", get 'Acor'.

PS : it is not from a trigger action, GetSpellAbilityId() is not sufficient for my need :(
 
Status
Not open for further replies.
Top