Browse Source

proc fix

magicbox-1.5.2.1
FatBoy-DOTC 5 months ago committed by MagicBot
parent
commit
0fbb43e021
  1. 5
      src/engine/gameManager/CombatManager.java

5
src/engine/gameManager/CombatManager.java

@ -197,8 +197,6 @@ public enum CombatManager { @@ -197,8 +197,6 @@ public enum CombatManager {
}
}
checkForProc(attacker,target,weapon);
//get delay for the auto attack job
long delay = 5000;
@ -359,6 +357,9 @@ public enum CombatManager { @@ -359,6 +357,9 @@ public enum CombatManager {
}
}
//check for proccing
checkForProc(attacker,target,weapon);
//calculate the base damage
int damage = ThreadLocalRandom.current().nextInt(min, max + 1);
if (damage == 0) {

Loading…
Cancel
Save