mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 03:40:49 +00:00
AI: don't cast fortify effects (Fixes #3184)
This commit is contained in:
parent
162287b82d
commit
a7b217def2
@ -275,6 +275,15 @@ namespace MWMechanics
|
||||
case ESM::MagicEffect::ResistShock:
|
||||
return 0.f; // probably useless since we don't know in advance what the enemy will cast
|
||||
|
||||
// don't cast these for now as they would make the NPC cast the same effect over and over again, especially when they have potions
|
||||
case ESM::MagicEffect::FortifyAttribute:
|
||||
case ESM::MagicEffect::FortifyHealth:
|
||||
case ESM::MagicEffect::FortifyMagicka:
|
||||
case ESM::MagicEffect::FortifyFatigue:
|
||||
case ESM::MagicEffect::FortifySkill:
|
||||
case ESM::MagicEffect::FortifyMaximumMagicka:
|
||||
return 0.f;
|
||||
|
||||
case ESM::MagicEffect::Feather:
|
||||
if (actor.getClass().getEncumbrance(actor) - actor.getClass().getCapacity(actor) >= 0)
|
||||
return 100.f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user