From cbe135c60f9cd144ed47dac39dbdc5db478f0f5e Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 31 Jan 2015 18:01:32 +0100 Subject: [PATCH] Don't require magicka for casting spells in God Mode (Fixes #2331) --- apps/openmw/mwworld/worldimp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 462df7e70..1015f31f6 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -2623,7 +2623,7 @@ namespace MWWorld // Check mana MWMechanics::DynamicStat magicka = stats.getMagicka(); - if (magicka.getCurrent() < spell->mData.mCost) + if (magicka.getCurrent() < spell->mData.mCost && !(isPlayer && getGodModeState())) { message = "#{sMagicInsufficientSP}"; fail = true;