I was actually using the wrong Map

Fixes #2113
This commit is contained in:
TfT_02 2014-07-03 12:33:03 +02:00
parent 2b9b5df1ee
commit daab095557

View File

@ -636,9 +636,9 @@ public final class CombatUtils {
private static Map<DamageModifier, Double> getScaledModifiers(double damage, Map<DamageModifier, Double> modifiers) {
Map<DamageModifier, Double> scaledModifiers = new HashMap<DamageModifier, Double>();
for (DamageModifier modifier : DamageModifier.values()) {
for (DamageModifier modifier : modifiers.keySet()) {
if (modifier == DamageModifier.BASE) {
modifiers.put(modifier, damage);
scaledModifiers.put(modifier, damage);
continue;
}