1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

Play blocked hit sound on the victim, not the attacker

This commit is contained in:
Alexei Kotov 2022-12-26 18:52:18 +03:00
parent 7a0635aeee
commit 74225991ca
2 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ namespace MWClass
if (MWMechanics::blockMeleeAttack(ptr, victim, weapon, damage, attackStrength))
{
damage = 0;
block(ptr);
victim.getClass().block(victim);
}
MWMechanics::diseaseContact(victim, ptr);

View File

@ -702,7 +702,7 @@ namespace MWClass
if (MWMechanics::blockMeleeAttack(ptr, victim, weapon, damage, attackStrength))
{
damage = 0;
block(ptr);
victim.getClass().block(victim);
}
if (victim == MWMechanics::getPlayer() && MWBase::Environment::get().getWorld()->getGodModeState())