Browse Source

calculate combat stats spam fix

lakebane-ai
FatBoy-DOTC 3 weeks ago
parent
commit
3ed303bec4
  1. 4
      src/engine/objects/PlayerCharacter.java

4
src/engine/objects/PlayerCharacter.java

@ -5061,14 +5061,16 @@ public class PlayerCharacter extends AbstractCharacter {
} }
this.updateLocation(); this.updateLocation();
if(this.isAlive() && this.isActive && this.enteredWorld) { if(this.isAlive() && this.isActive && this.enteredWorld) {
this.updateMovementState(); this.updateMovementState();
this.doRegen();
if (this.combatStats == null) { if (this.combatStats == null) {
this.combatStats = new PlayerCombatStats(this); this.combatStats = new PlayerCombatStats(this);
} else { } else {
this.combatStats.update(); this.combatStats.update();
} }
this.doRegen();
} }
if (this.getStamina() < 10) { if (this.getStamina() < 10) {

Loading…
Cancel
Save