Mascarada / epgp

Automatically exported from code.google.com/p/epgp
0 stars 0 forks source link

Bonus Loot shows remaining amount for the wrong coin #751

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The addon uses the MoP coin, id 776 instead of the WoD coind, id 994.

diff --git a/LibLootNotify-1.0.lua b/LibLootNotify-1.0.lua
index ec56c51..c56ad89 100644
--- a/LibLootNotify-1.0.lua
+++ b/LibLootNotify-1.0.lua
@@ -83,7 +83,7 @@ function lib.BonusMessageReceiver(prefix, message, 
distribution, sender)
 end

 local function HandleBonusLootResult(rewardType, rewardLink, rewardQuantity)
-  local _, numCoins = GetCurrencyInfo(currentCurrencyID or 776)
+  local _, numCoins = GetCurrencyInfo(currentCurrencyID or 994)
   lib:SendCommMessage("EPGPBONUS", format("BONUS_LOOT_RESULT^%s^%s^%s^%s",
                      tostring(rewardType),
                      tostring(rewardLink),
diff --git a/epgp_options.lua b/epgp_options.lua
index 375980d..0d08e8d 100644
--- a/epgp_options.lua
+++ b/epgp_options.lua
@@ -173,7 +173,7 @@ function EPGP:ProcessCommand(str)
 end

 function EPGP:FakeCoinEvent(item)
-  LLN.BonusMessageReceiver(nil, string.format("BONUS_LOOT_RESULT^%s^%s^%s^%s", 
"item", item, 32, 776),
+  LLN.BonusMessageReceiver(nil, string.format("BONUS_LOOT_RESULT^%s^%s^%s^%s", 
"item", item, 32, 994),
               nil, UnitName("player"))
 end

Original issue reported on code.google.com by ciprianm...@gmail.com on 7 Mar 2015 at 7:16