mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-07 13:06:41 +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,8 +1120,11 @@ 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
|
||||||
if (ptr.getClass().isNpc() && !attacker.isEmpty() && !ptr.getClass().getCreatureStats(ptr).getAiSequence().isInCombat(attacker)
|
if (ptr.getClass().isNpc() && !attacker.isEmpty() && !ptr.getClass().getCreatureStats(ptr).getAiSequence().isInCombat(attacker)
|
||||||
|
|
Loading…
Reference in a new issue