From f25c65260cc7f2d101180afe1d3576d0c5ce3475 Mon Sep 17 00:00:00 2001 From: Allofich Date: Wed, 31 Aug 2016 17:22:45 +0900 Subject: [PATCH] Limit sMagicinvalidEffect to self-cast spells --- apps/openmw/mwmechanics/spellcasting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/spellcasting.cpp b/apps/openmw/mwmechanics/spellcasting.cpp index 7778b8693..fb473b0db 100644 --- a/apps/openmw/mwmechanics/spellcasting.cpp +++ b/apps/openmw/mwmechanics/spellcasting.cpp @@ -393,7 +393,7 @@ namespace MWMechanics if (!world->isWaterWalkingCastableOnTarget(target)) { - if (castByPlayer) + if (castByPlayer && caster == target) MWBase::Environment::get().getWindowManager()->messageBox ("#{sMagicInvalidEffect}"); continue; }