fix: Implement missing critical hit sound (#1141)

This commit is contained in:
Tyler Reese
2026-04-13 00:51:16 -05:00
committed by itsRevela
parent 71707fbb8c
commit 6913ce5323
9 changed files with 64 additions and 9 deletions
+4
View File
@@ -1631,6 +1631,10 @@ void Player::attack(shared_ptr<Entity> entity)
}
DamageSource *damageSource = DamageSource::playerAttack(dynamic_pointer_cast<Player>(shared_from_this()));
if (bCrit) {
damageSource->setIsCritical();
}
bool wasHurt = entity->hurt(damageSource, dmg);
delete damageSource;
if (wasHurt)