mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 16:23:52 +00:00
Don't pursue the player for their crimes when they are a werewolf
This commit is contained in:
parent
3bcabf3806
commit
21eb25706c
1 changed files with 3 additions and 0 deletions
|
@ -989,6 +989,9 @@ namespace MWMechanics
|
|||
CreatureStats& creatureStats = ptr.getClass().getCreatureStats(ptr);
|
||||
NpcStats& npcStats = ptr.getClass().getNpcStats(ptr);
|
||||
|
||||
if (player.getClass().getNpcStats(player).isWerewolf())
|
||||
return;
|
||||
|
||||
if (ptr.getClass().isClass(ptr, "Guard") && creatureStats.getAiSequence().getTypeId() != AiPackage::TypeIdPursue && !creatureStats.getAiSequence().isInCombat())
|
||||
{
|
||||
const MWWorld::ESMStore& esmStore = MWBase::Environment::get().getWorld()->getStore();
|
||||
|
|
Loading…
Reference in a new issue