mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 18:32:36 +00:00
Merge branch 'yet_another_magical_regression' into 'master'
Remove teleportation effects after they've been applied Closes #6460 See merge request OpenMW/openmw!1453
This commit is contained in:
commit
31170c3842
@ -798,6 +798,11 @@ MagicApplicationResult applyMagicEffect(const MWWorld::Ptr& target, const MWWorl
|
||||
MWBase::Environment::get().getWindowManager()->messageBox ("#{sLevitateDisabled}");
|
||||
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)
|
||||
return MagicApplicationResult::REMOVED;
|
||||
}
|
||||
const auto* magicEffect = world->getStore().get<ESM::MagicEffect>().find(effect.mEffectId);
|
||||
if(effect.mFlags & ESM::ActiveEffect::Flag_Applied)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user