clear energy on death

This commit is contained in:
logictc 2022-05-24 16:44:45 -04:00 committed by Melledy
parent e0593554b6
commit af381dcf42

View File

@ -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