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:
parent
7a0635aeee
commit
74225991ca
@ -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);
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user