mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-02 07:21:07 +00:00
Add missing Hit voice dialogue for friendly hits
This commit is contained in:
parent
54dac1460c
commit
c19f89976e
@ -1120,8 +1120,11 @@ namespace MWMechanics
|
||||
ptr.getClass().getCreatureStats(ptr).friendlyHit();
|
||||
|
||||
if (ptr.getClass().getCreatureStats(ptr).getFriendlyHits() < 4)
|
||||
{
|
||||
MWBase::Environment::get().getDialogueManager()->say(ptr, "hit");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Attacking peaceful NPCs is a crime
|
||||
if (ptr.getClass().isNpc() && !attacker.isEmpty() && !ptr.getClass().getCreatureStats(ptr).getAiSequence().isInCombat(attacker)
|
||||
|
Loading…
x
Reference in New Issue
Block a user