mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-05-08 13:06:02 +08:00
clear energy on death
This commit is contained in:
parent
8f6f30c813
commit
40129ab346
@ -108,11 +108,13 @@ public class EntityAvatar extends GameEntity {
|
|||||||
public void onDeath(int killerId) {
|
public void onDeath(int killerId) {
|
||||||
this.killedType = PlayerDieType.PLAYER_DIE_KILL_BY_MONSTER;
|
this.killedType = PlayerDieType.PLAYER_DIE_KILL_BY_MONSTER;
|
||||||
this.killedBy = killerId;
|
this.killedBy = killerId;
|
||||||
|
clearEnergy(PropChangeReason.PROP_CHANGE_STATUE_RECOVER);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onDeath(PlayerDieType dieType, int killerId) {
|
public void onDeath(PlayerDieType dieType, int killerId) {
|
||||||
this.killedType = dieType;
|
this.killedType = dieType;
|
||||||
this.killedBy = killerId;
|
this.killedBy = killerId;
|
||||||
|
clearEnergy(PropChangeReason.PROP_CHANGE_STATUE_RECOVER);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user