mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 21:49:41 +00:00
Don't play area vfx for non-area spells on actors.
This commit is contained in:
parent
88d992a020
commit
02610828c1
1 changed files with 2 additions and 2 deletions
|
@ -3162,8 +3162,8 @@ 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->mRange != rangeType)
|
if ((effectIt->mArea <= 0 && !ignore.isEmpty() && ignore.getClass().isActor()) || effectIt->mRange != rangeType)
|
||||||
continue; // Not right range type
|
continue; // Not right range type, or not area effect and hit an actor
|
||||||
|
|
||||||
// Spawn the explosion orb effect
|
// Spawn the explosion orb effect
|
||||||
const ESM::Static* areaStatic;
|
const ESM::Static* areaStatic;
|
||||||
|
|
Loading…
Reference in a new issue