From 0c603e986dc0e86c20768c3d62f5391c440a0f45 Mon Sep 17 00:00:00 2001 From: Allofich Date: Fri, 23 Sep 2016 01:58:12 +0900 Subject: [PATCH] Don't play touch spell explosions on non-activatable statics --- apps/openmw/mwworld/worldimp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index c6a94a48e..af0551e69 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -3187,6 +3187,9 @@ namespace MWWorld if (effectIt->mRange != rangeType || (effectIt->mArea <= 0 && !ignore.isEmpty() && ignore.getClass().isActor())) continue; // Not right range type, or not area effect and hit an actor + if (effectIt->mRange == ESM::RT_Touch && (!ignore.isEmpty()) && (!ignore.getClass().isActor() && !ignore.getClass().canBeActivated(ignore))) + continue; // Don't play explosion for touch spells on non-activatable objects + // Spawn the explosion orb effect const ESM::Static* areaStatic; if (!effect->mArea.empty())