ENVIRONMENTAL_DAMAGE Event Type Changed
The ENVIRONMENTAL_DAMAGE sub-event of COMBAT_EVENT_LOG_UNFILTERED has been changed from reporting an unlocalized hazard type token to a localized value. While this probably won't affect very many addons (luckily it doesn't affect MSBT since it just reports the localized value anyways), it does make it difficult to detect a specific type of environmental damage.
As detailed on wowpedia here it previously returned tokens such as "FALLING" and "DROWNING" making it easy to detect specific types of environmental damage in a language independent manner. |
The localized environmental damage strings appear to be in the GlobalStrings.lua file, if you need to compare them.
Code:
ACTION_ENVIRONMENTAL_DAMAGE = "damaged"; |
As an update, the argument isn't a localised value - it's simply not capitalised. Checked this just by just logging into the beta with the french client where, for falling damage, the value is still "Falling", but ACTION_ENVIRONMENTAL_DAMAGE_FALLING is "Chute".
Someone with a lot of time on their hands could try that with all localisations, if they want to be really sure. |
Well that's good to know. On the other hand, if you do want to convert to the localized string you could use one of the globals :p
|
All times are GMT -6. The time now is 09:23 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI