Browse Source

hit chance work

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
bd098fcb24
  1. 2
      src/engine/gameManager/CombatManager.java

2
src/engine/gameManager/CombatManager.java

@ -645,7 +645,7 @@ public enum CombatManager {
errorTrack = 4; errorTrack = 4;
//Get hit chance //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; errorTrack = 5;

Loading…
Cancel
Save