1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:45:34 +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,13 +613,10 @@ namespace MWMechanics
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);
return true;
}
target.getClass().getCreatureStats(target).getActiveSpells().purgeAll(magnitude);
return true;
}
else if (target.getClass().isActor() && target == getPlayer())
{