mirror of
https://github.com/OpenMW/openmw.git
synced 2026-02-02 22:18:36 +00:00
Cleanup
This commit is contained in:
parent
01292b8946
commit
7ec362b96b
1 changed files with 2 additions and 3 deletions
|
|
@ -1571,9 +1571,8 @@ namespace MWMechanics
|
|||
const MWWorld::Class& cls = target.getClass();
|
||||
const MWMechanics::CreatureStats& stats = cls.getCreatureStats(target);
|
||||
const MWMechanics::AiSequence& seq = stats.getAiSequence();
|
||||
return cls.isNpc() && !attacker.isEmpty() && !seq.isInCombat(attacker) && !isAggressive(target, attacker)
|
||||
&& !seq.isEngagedWithActor() && !stats.getAiSequence().isInPursuit()
|
||||
&& !cls.getNpcStats(target).isWerewolf()
|
||||
return cls.isNpc() && !attacker.isEmpty() && !isAggressive(target, attacker) && !seq.isEngagedWithActor()
|
||||
&& !stats.getAiSequence().isInPursuit() && !cls.getNpcStats(target).isWerewolf()
|
||||
&& stats.getMagicEffects().getOrDefault(ESM::MagicEffect::Vampirism).getMagnitude() <= 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue