- Joined
- Feb 27, 2019
- Messages
- 401
Hello,
Patch 1.31 gives new natives that return "ability" type. For ex:
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
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