1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-02-02 22:18:36 +00:00
This commit is contained in:
Alexei Kotov 2026-02-01 18:10:33 +03:00
parent 01292b8946
commit 7ec362b96b

View file

@ -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;
}