# HG changeset patch # User Geoff Brock # Date 1471456273 14400 # Node ID c5a66cdf45e2c9e23eeb15b3f916d964f892d2c2 # Parent 61b9ea84a44cf4abb77116ef1175889aee2dba45 Fix for a longstanding (and unnoticed... until now...) bug with interrupted attempts at milling. diff -r 61b9ea84a44c -r c5a66cdf45e2 ProspectMe.lua --- a/ProspectMe.lua Wed Aug 17 13:41:17 2016 -0400 +++ b/ProspectMe.lua Wed Aug 17 13:51:13 2016 -0400 @@ -90,7 +90,7 @@ end if event == "UNIT_SPELLCAST_INTERRUPTED" then local unitID, spell, rank = ... - if unitID == "player" and spell == PROSPECT then + if unitID == "player" and (spell == PROSPECT or spell == MILLING or spell == MASS_PROSPECT_FELSLATE or spell == MASS_PROSPECT_LEYSTONE or spell == MASS_MILLING_YSERALLINE)then getContents = false end end @@ -141,7 +141,7 @@ local spellName = GetSpellInfo(...) if spellName:lower() == PROSPECT:lower() or spellName:lower() == MILLING:lower() or spellName:lower() == MASS_PROSPECT_FELSLATE:lower() or spellName:lower() == MASS_PROSPECT_LEYSTONE:lower() or spellName:lower() == MASS_MILLING_YSERALLINE :lower () then getContents = true - if spellName:lower() == MASS_PROSPECT_FELSLATE:lower() or spellName:lower() == MASS_PROSPECT_LEYSTONE:lower() or spellName:lower() == MASS_MILLING_YSERALLINE :lower () then + if spellName:lower() == MASS_PROSPECT_FELSLATE:lower() or spellName:lower() == MASS_PROSPECT_LEYSTONE:lower() or spellName:lower() == MASS_MILLING_YSERALLINE:lower () then bulkMultiplier = 4 else bulkMultiplier = 1 @@ -175,7 +175,7 @@ hooksecurefunc("CastSpellByName", function(spellName, onSelf) if spellName:lower() == PROSPECT:lower() or spellName:lower() == MILLING:lower() or spellName:lower() == MASS_PROSPECT_FELSLATE:lower() or spellName:lower() == MASS_PROSPECT_LEYSTONE:lower() or spellName:lower() == MASS_MILLING_YSERALLINE :lower () then getContents = true - if spellName:lower() == MASS_PROSPECT_FELSLATE:lower() or spellName:lower() == MASS_PROSPECT_LEYSTONE:lower() or spellName:lower() == MASS_MILLING_YSERALLINE :lower () then + if spellName:lower() == MASS_PROSPECT_FELSLATE:lower() or spellName:lower() == MASS_PROSPECT_LEYSTONE:lower() or spellName:lower() == MASS_MILLING_YSERALLINE:lower () then bulkMultiplier = 4 else bulkMultiplier = 1