changeset 12:c5a66cdf45e2

Fix for a longstanding (and unnoticed... until now...) bug with interrupted attempts at milling.
author Geoff Brock <mischivin@gmail.com>
date Wed, 17 Aug 2016 13:51:13 -0400
parents 61b9ea84a44c
children e6eec48ecf14
files ProspectMe.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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