forked from mirror/openmw-tes3mp
Fix spells having explosions for wrong range type
This commit is contained in:
parent
c4d77b6a8b
commit
ecec7d8215
1 changed files with 3 additions and 2 deletions
|
@ -3163,8 +3163,9 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
const ESM::MagicEffect* effect = getStore().get<ESM::MagicEffect>().find(effectIt->mEffectID);
|
const ESM::MagicEffect* effect = getStore().get<ESM::MagicEffect>().find(effectIt->mEffectID);
|
||||||
|
|
||||||
if (effectIt->mArea <= 0)
|
if (effectIt->mArea <= 0 || effectIt->mRange != rangeType)
|
||||||
continue; // Not an area effect
|
continue; // Not an area effect or not right range type
|
||||||
|
|
||||||
|
|
||||||
// Spawn the explosion orb effect
|
// Spawn the explosion orb effect
|
||||||
const ESM::Static* areaStatic;
|
const ESM::Static* areaStatic;
|
||||||
|
|
Loading…
Reference in a new issue