[open] GetUnitBuffInfo <-> GetAbilityBuffType
Figured out an inconsistency of two parameters. One is a string, the other a number:
- correct buffType GetAbilityBuffType(number abilityId) Returns: number BuffType buffType - wrong buffType GetUnitBuffInfo(string unitTag, number buffIndex) Returns: string buffName, number timeStarted, number timeEnding, number buffSlot, number stackCount, textureName iconFilename, string buffType, number BuffEffectType effectType, number AbilityType abilityType, number StatusEffectType statusEffectType, number abilityId, boolean canClickOff, boolean castByPlayer Ticket# 191226-000671 |
@Dan, still not fixed ;-)
|
You'd think that'd be an easy fix, but actually it's not. GetUnitBuffInfo's buffType return is poorly named. It's not the BuffType, it's really just whether or not the buff is active, kind of. It's a debug return that's only used in debug code (which is the primary reason it's hard for me to just "fix it."). GetUnitBuffInfo does not currently have anything attempting to return the actual legit BuffType. I could potentially add a new return at the end that it the actual BuffType, if that's desirable, and rename the existing one to something else in the API.
|
got it, thanks.a new return would be nice
|
All times are GMT -6. The time now is 05:41 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI