From af381dcf427f17a475e0fdc2a9b80ddad0735015 Mon Sep 17 00:00:00 2001 From: logictc Date: Tue, 24 May 2022 16:44:45 -0400 Subject: [PATCH] clear energy on death --- src/main/java/emu/grasscutter/game/entity/EntityAvatar.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/emu/grasscutter/game/entity/EntityAvatar.java b/src/main/java/emu/grasscutter/game/entity/EntityAvatar.java index e082355f8..c8ceea796 100644 --- a/src/main/java/emu/grasscutter/game/entity/EntityAvatar.java +++ b/src/main/java/emu/grasscutter/game/entity/EntityAvatar.java @@ -108,11 +108,13 @@ public class EntityAvatar extends GameEntity { public void onDeath(int killerId) { this.killedType = PlayerDieType.PLAYER_DIE_KILL_BY_MONSTER; this.killedBy = killerId; + clearEnergy(PropChangeReason.PROP_CHANGE_STATUE_RECOVER); } public void onDeath(PlayerDieType dieType, int killerId) { this.killedType = dieType; this.killedBy = killerId; + clearEnergy(PropChangeReason.PROP_CHANGE_STATUE_RECOVER); } @Override