mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 07:09:42 +00:00
Delay teleportation till the menu is closed
This commit is contained in:
parent
ee980721b8
commit
08f998eeb1
1 changed files with 7 additions and 0 deletions
|
@ -974,6 +974,13 @@ namespace MWMechanics
|
||||||
}
|
}
|
||||||
else
|
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::Type::APPLIED, receivedMagicDamage, affectedHealth };
|
||||||
auto& stats = target.getClass().getCreatureStats(target);
|
auto& stats = target.getClass().getCreatureStats(target);
|
||||||
auto& magnitudes = stats.getMagicEffects();
|
auto& magnitudes = stats.getMagicEffects();
|
||||||
if (spellParams.getType() != ESM::ActiveSpells::Type_Ability
|
if (spellParams.getType() != ESM::ActiveSpells::Type_Ability
|
||||||
|
|
Loading…
Reference in a new issue