Browse Source

Float fix

combat-2
MagicBot 7 months ago
parent
commit
e00871324e
  1. 2
      src/engine/gameManager/CombatManager.java

2
src/engine/gameManager/CombatManager.java

@ -245,7 +245,7 @@ public enum CombatManager { @@ -245,7 +245,7 @@ public enum CombatManager {
int hitChance;
if (def == 0)
def = 1;
float dif = atr / def;
float dif = atr * 1f / def;
if (dif <= 0.8f)
hitChance = 4;

Loading…
Cancel
Save