Quantcast

Fix typo that caused death runes to not be counted properly.

Johnny C. Lam [01-01-15 - 12:33]
Fix typo that caused death runes to not be counted properly.

Fixes ticket 508 by @Necroskillz.
Filename
Runes.lua
diff --git a/Runes.lua b/Runes.lua
index c86db61..f399ac9 100644
--- a/Runes.lua
+++ b/Runes.lua
@@ -455,7 +455,7 @@ statePrototype.RuneCount = function(state, name, includeDeath, atTime)
 			local rune = state.rune[slot]
 			local matched = (rune.type == runeType)
 			if includeDeath == nil then
-				matched = matched or rune.type == "DEATH_RUNE"
+				matched = matched or rune.type == DEATH_RUNE
 			end
 			if matched then
 				if rune:IsActiveRune(atTime) then