Fix spells having explosions for wrong range type

pull/55/head
Allofich 8 years ago
parent c4d77b6a8b
commit ecec7d8215

@ -3163,8 +3163,9 @@ namespace MWWorld
{
const ESM::MagicEffect* effect = getStore().get<ESM::MagicEffect>().find(effectIt->mEffectID);
if (effectIt->mArea <= 0)
continue; // Not an area effect
if (effectIt->mArea <= 0 || effectIt->mRange != rangeType)
continue; // Not an area effect or not right range type
// Spawn the explosion orb effect
const ESM::Static* areaStatic;

Loading…
Cancel
Save