fix: Implement missing critical hit sound (#1141)

* Fix

* Crit Sound Now Plays On Death

* Revert BuildVer.h

---------

Co-authored-by: Loki <lokio.casebstv@gmail.com>
This commit is contained in:
Tyler Reese
2026-04-12 21:24:29 -07:00
committed by GitHub
parent 2d41711055
commit 78afb091a4
9 changed files with 64 additions and 9 deletions

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)