Skip to content

Commit

Permalink
fix: bug when player dies with skillLost false (opentibiabr#2979)
Browse files Browse the repository at this point in the history
Changed the location of the function to execute in all scenarios.
  • Loading branch information
LeoPetryx authored Oct 16, 2024
1 parent 0c7aafe commit 68e9c3b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2903,6 +2903,7 @@ void Player::death(std::shared_ptr<Creature> lastHitCreature) {
++it;
}
}
despawn();
} else {
setSkillLoss(true);

Expand All @@ -2927,8 +2928,6 @@ void Player::death(std::shared_ptr<Creature> lastHitCreature) {
onIdleStatus();
sendStats();
}

despawn();
}

bool Player::spawn() {
Expand Down

0 comments on commit 68e9c3b

Please sign in to comment.