1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-25 21:41:04 +00:00

Merge branch 'blockofcoal' into 'master'

Play blocked hit sound on the victim, not the attacker

See merge request OpenMW/openmw!2551
This commit is contained in:
psi29a 2022-12-27 13:20:04 +00:00
commit 8b0eba8906
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())