|
|
@ -1,4 +1,5 @@
|
|
|
|
#include "spellpriority.hpp"
|
|
|
|
#include "spellpriority.hpp"
|
|
|
|
|
|
|
|
#include "weaponpriority.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include <components/esm/loadench.hpp>
|
|
|
|
#include <components/esm/loadench.hpp>
|
|
|
|
#include <components/esm/loadmgef.hpp>
|
|
|
|
#include <components/esm/loadmgef.hpp>
|
|
|
@ -335,6 +336,12 @@ namespace MWMechanics
|
|
|
|
return 0.f;
|
|
|
|
return 0.f;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case ESM::MagicEffect::BoundLongbow:
|
|
|
|
|
|
|
|
// AI should not summon the bow if there is no suitable ammo.
|
|
|
|
|
|
|
|
if (rateAmmo(actor, enemy, ESM::Weapon::Arrow) <= 0.f)
|
|
|
|
|
|
|
|
return 0.f;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case ESM::MagicEffect::RestoreHealth:
|
|
|
|
case ESM::MagicEffect::RestoreHealth:
|
|
|
|
case ESM::MagicEffect::RestoreMagicka:
|
|
|
|
case ESM::MagicEffect::RestoreMagicka:
|
|
|
|
case ESM::MagicEffect::RestoreFatigue:
|
|
|
|
case ESM::MagicEffect::RestoreFatigue:
|
|
|
|