From a65ecfeb65e0752cae67085cc3255e4ac42d1bf6 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 27 Mar 2024 18:18:41 -0500 Subject: [PATCH] damage calculated as int --- src/engine/objects/AbstractCharacter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index 3b69f13e..a3d1fc1f 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -740,8 +740,9 @@ public abstract class AbstractCharacter extends AbstractWorldObject { // mastDam = CharacterSkill.getQuickMastery(this, wb.getMastery()); else mastDam = masteryPercentage; - min = (int)wb.item_weapon_damage.values().toArray()[0]; - max = (int)wb.item_weapon_damage.values().toArray()[1]; + int[] damages = (int[])wb.item_weapon_damage.values().toArray()[0]; + min = damages[0]; + max = damages[1]; strBased = wb.item_primary_attr.equals(AttributeType.Strength); //