From daab09555782bb87fc9a3245308078f868cc91d7 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Thu, 3 Jul 2014 12:33:03 +0200 Subject: [PATCH] I was actually using the wrong Map Fixes #2113 --- src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java index c8e3ff164..98346d284 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java @@ -636,9 +636,9 @@ public final class CombatUtils { private static Map getScaledModifiers(double damage, Map modifiers) { Map scaledModifiers = new HashMap(); - for (DamageModifier modifier : DamageModifier.values()) { + for (DamageModifier modifier : modifiers.keySet()) { if (modifier == DamageModifier.BASE) { - modifiers.put(modifier, damage); + scaledModifiers.put(modifier, damage); continue; }