Skip to content

Commit

Permalink
fix: remove white skull if no disconnect on death (#1003)
Browse files Browse the repository at this point in the history
Remove white skull if player no disconnect on death.
  • Loading branch information
dudantas authored Apr 19, 2023
1 parent 9f2a9b0 commit 46cac97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2394,6 +2394,10 @@ uint32_t Player::getIP() const {
void Player::death(Creature* lastHitCreature) {
loginPosition = town->getTemplePosition();

if (getSkull() != SKULL_RED && getSkull() != SKULL_BLACK) {
setSkull(SKULL_NONE);
}

if (skillLoss) {
uint8_t unfairFightReduction = 100;
int playerDmg = 0;
Expand Down

0 comments on commit 46cac97

Please sign in to comment.