forked from teamnwah/openmw-tes3coop
AI: don't cast fortify effects (Fixes #3184)
This commit is contained in:
parent
162287b82d
commit
a7b217def2
1 changed files with 9 additions and 0 deletions
|
@ -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…
Reference in a new issue