|
|
|
@ -796,12 +796,16 @@ MagicApplicationResult applyMagicEffect(const MWWorld::Ptr& target, const MWWorl
|
|
|
|
|
{
|
|
|
|
|
if(target == getPlayer())
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->messageBox ("#{sLevitateDisabled}");
|
|
|
|
|
onMagicEffectRemoved(target, spellParams, effect);
|
|
|
|
|
return MagicApplicationResult::REMOVED;
|
|
|
|
|
}
|
|
|
|
|
else if(effect.mEffectId == ESM::MagicEffect::AlmsiviIntervention || effect.mEffectId == ESM::MagicEffect::DivineIntervention || effect.mEffectId == ESM::MagicEffect::Recall)
|
|
|
|
|
{
|
|
|
|
|
if(effect.mFlags & ESM::ActiveEffect::Flag_Applied)
|
|
|
|
|
{
|
|
|
|
|
onMagicEffectRemoved(target, spellParams, effect);
|
|
|
|
|
return MagicApplicationResult::REMOVED;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const auto* magicEffect = world->getStore().get<ESM::MagicEffect>().find(effect.mEffectId);
|
|
|
|
|
if(effect.mFlags & ESM::ActiveEffect::Flag_Applied)
|
|
|
|
|