mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-02 21:06:40 +00:00
Add missing Hit voice dialogue for friendly hits
This commit is contained in:
parent
54dac1460c
commit
c19f89976e
1 changed files with 3 additions and 0 deletions
|
@ -1120,7 +1120,10 @@ namespace MWMechanics
|
||||||
ptr.getClass().getCreatureStats(ptr).friendlyHit();
|
ptr.getClass().getCreatureStats(ptr).friendlyHit();
|
||||||
|
|
||||||
if (ptr.getClass().getCreatureStats(ptr).getFriendlyHits() < 4)
|
if (ptr.getClass().getCreatureStats(ptr).getFriendlyHits() < 4)
|
||||||
|
{
|
||||||
|
MWBase::Environment::get().getDialogueManager()->say(ptr, "hit");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attacking peaceful NPCs is a crime
|
// Attacking peaceful NPCs is a crime
|
||||||
|
|
Loading…
Reference in a new issue