1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-23 05:11:33 +00:00

Fix teleportation being unreachable

This commit is contained in:
Assumeru 2017-01-03 22:02:23 +01:00
parent cba1aff9ab
commit 1a073ca642

View file

@ -613,14 +613,11 @@ namespace MWMechanics
return true; return true;
} }
} }
else if (target.getClass().isActor()) else if (target.getClass().isActor() && effectId == ESM::MagicEffect::Dispel)
{
if (effectId == ESM::MagicEffect::Dispel)
{ {
target.getClass().getCreatureStats(target).getActiveSpells().purgeAll(magnitude); target.getClass().getCreatureStats(target).getActiveSpells().purgeAll(magnitude);
return true; return true;
} }
}
else if (target.getClass().isActor() && target == getPlayer()) else if (target.getClass().isActor() && target == getPlayer())
{ {
MWRender::Animation* anim = MWBase::Environment::get().getWorld()->getAnimation(mCaster); MWRender::Animation* anim = MWBase::Environment::get().getWorld()->getAnimation(mCaster);