From bd098fcb244a6ce8e95da32f448b72712ad6cd95 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 31 Mar 2024 11:20:18 -0500 Subject: [PATCH] hit chance work --- src/engine/gameManager/CombatManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index 72c0282a..c7d19ad2 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -645,7 +645,7 @@ public enum CombatManager { errorTrack = 4; //Get hit chance - int chance = (int)((atr-((atr+defense)*0.33f))/((defense-((atr+defense)*0.33f))+(atr-((atr+defense)*0.33f)))) * 100; + int chance = (int)(((atr-((atr+defense)*0.33f))/((defense-((atr+defense)*0.33f))+(atr-((atr+defense)*0.33f))))) * 100; errorTrack = 5;