mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-17 10:21:11 +00:00
Fix teleportation being unreachable
This commit is contained in:
parent
cba1aff9ab
commit
1a073ca642
@ -613,13 +613,10 @@ 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);
|
||||||
{
|
return true;
|
||||||
target.getClass().getCreatureStats(target).getActiveSpells().purgeAll(magnitude);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (target.getClass().isActor() && target == getPlayer())
|
else if (target.getClass().isActor() && target == getPlayer())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user