1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 14:23:53 +00:00

Don't play area vfx for non-area spells on actors.

This commit is contained in:
Allofich 2016-09-08 02:05:24 +09:00
parent 88d992a020
commit 02610828c1

View file

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