# HG changeset patch # User MMOSimca # Date 1420030627 18000 # Node ID da20cca2ddc6dfdfa88cab8f613e81ca919c7ec7 # Parent 0825513e6af1f685be76a802588e8b3b52155440 Prevented recording bonus roll loot (it skews true loot percentages with spec-based drop data). diff -r 0825513e6af1 -r da20cca2ddc6 Main.lua --- a/Main.lua Wed Dec 31 05:57:30 2014 -0500 +++ b/Main.lua Wed Dec 31 07:57:07 2014 -0500 @@ -90,6 +90,7 @@ BANKFRAME_OPENED = true, BATTLEFIELDS_SHOW = true, BLACK_MARKET_ITEM_UPDATE = true, + BONUS_ROLL_RESULT = true, CHAT_MSG_CURRENCY = true, CHAT_MSG_LOOT = true, CHAT_MSG_MONSTER_SAY = "RecordQuote", @@ -1275,6 +1276,14 @@ end +-- For now, bonus roll data only pollutes the true drop percentages. We still want to capture the data from SPELL_CONFIRMATION_PROMPT because of legendary quest items though. +function WDP:BONUS_ROLL_RESULT(event_name) + Debug("%s: Bonus roll detected; stopping loot recording for this boss to avoid recording bonus loot.", event_name) + ClearKilledBossID() + ClearLootToastContainerID() +end + + function WDP:BLACK_MARKET_ITEM_UPDATE(event_name) if not ALLOWED_LOCALES[CLIENT_LOCALE] then return