Closed Tasyen closed 2 months ago
Oh, one one hand general stuff about the game should belong to a mapper's wiki, on the other hand we don't have such a wiki and even if we did, would anyone like to look up info in two places?
I will expand the test code and make it a PR. Thanks!
nbee is some campaign High Elf "engineer" in name only. He has no building ability. ogru is Grunt for control. I am not sure who all these building skills belong to, I just ran with your list :)
local unit u = CreateUnit(Player(0), 'hpea', 0, 0, 0)
call BJDebugMsg(I2S(GetHandleId(BlzGetUnitAbility(u, 'AHbu'))))
call BJDebugMsg(I2S(GetHandleId(BlzGetUnitAbility(u, 'AObu'))))
Yeah, you even get the same ability object (the above should print the same number twice).
Also works with UnitRemoveAbility
and BlzUnitDisableAbility
.
GetUnitAbilityLevel treats some abilities as the same. Recently I wanted to check which worker ability an worker has so I did GetUnitAbilityLevel > 0 . But every melee worker had all built skills and returned 1 for any of them.