Browse Source

hot fix for regen

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

12
src/engine/objects/PlayerCombatStats.java

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

Loading…
Cancel
Save