Browse Source

hot fix for regen

lakebane
FatBoy-DOTC 6 days ago
parent
commit
f5ebda9147
  1. 14
      src/engine/objects/PlayerCombatStats.java

14
src/engine/objects/PlayerCombatStats.java

@ -890,12 +890,14 @@ public class PlayerCombatStats { @@ -890,12 +890,14 @@ public class PlayerCombatStats {
public void regenerate(){
if(!this.owner.effects.containsKey("Stunned")) {
healthRegen(this.owner);
manaRegen(this.owner);
staminaRegen(this.owner);
}
staminaConsume(this.owner);
this.owner.syncClient();
// healthRegen(this.owner);
//manaRegen(this.owner);
//staminaRegen(this.owner);
this.owner.doRegen();
this.owner.syncClient();
}
//staminaConsume(this.owner);
//this.owner.syncClient();
}
public static void healthRegen(PlayerCharacter pc){
if(!pc.timestamps.containsKey("LASTHEALTHREGEN"))

Loading…
Cancel
Save