mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-25 21:23:42 -04:00
Delay teleportation till the menu is closed
This commit is contained in:
parent
e30d5a5a35
commit
c1b9a91877
@ -918,6 +918,13 @@ MagicApplicationResult applyMagicEffect(const MWWorld::Ptr& target, const MWWorl
|
||||
}
|
||||
else
|
||||
{
|
||||
// Morrowind.exe doesn't apply magic effects while the menu is open, we do because we like to see stats
|
||||
// updated instantly. We don't want to teleport instantly though
|
||||
if (!dt
|
||||
&& (effect.mEffectId == ESM::MagicEffect::Recall
|
||||
|| effect.mEffectId == ESM::MagicEffect::DivineIntervention
|
||||
|| effect.mEffectId == ESM::MagicEffect::AlmsiviIntervention))
|
||||
return MagicApplicationResult::APPLIED;
|
||||
auto& stats = target.getClass().getCreatureStats(target);
|
||||
auto& magnitudes = stats.getMagicEffects();
|
||||
if(spellParams.getType() != ESM::ActiveSpells::Type_Ability && !(effect.mFlags & ESM::ActiveEffect::Flag_Applied))
|
||||
|
Loading…
x
Reference in New Issue
Block a user