Handle weapons with decimal damage ranges
Kevin Lyles [11-03-12 - 18:21]
Handle weapons with decimal damage ranges
diff --git a/Locales/enUS/patterns.lua b/Locales/enUS/patterns.lua
index 608f9c1..ccdf5de 100644
--- a/Locales/enUS/patterns.lua
+++ b/Locales/enUS/patterns.lua
@@ -19,7 +19,7 @@ ww_EffectHandlers = {
function WeightsWatcher.damageRange(textL, textR)
local stats
- local start, _, minimum, maximum = string.find(textL, "^%+?(%d+) %- (%d+) %a* ?damage$")
+ local start, _, minimum, maximum = string.find(textL, "^%+?(%d+%.?%d*) %- (%d+%.?%d*) %a* ?damage$")
if start then
stats = WeightsWatcher.newStatTable()
maximum = tonumber(maximum)