Merge pull request #1181 from Assumeru/teleportation

Fix teleportation being unreachable
0.6.3
scrawl 8 years ago committed by GitHub
commit 0cd4fc8cae

@ -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())
{

Loading…
Cancel
Save