Don't require magicka for casting spells in God Mode (Fixes #2331)

openmw-35
scrawl 10 years ago
parent 7d76f1a113
commit cbe135c60f

@ -2623,7 +2623,7 @@ namespace MWWorld
// Check mana
MWMechanics::DynamicStat<float> magicka = stats.getMagicka();
if (magicka.getCurrent() < spell->mData.mCost)
if (magicka.getCurrent() < spell->mData.mCost && !(isPlayer && getGodModeState()))
{
message = "#{sMagicInsufficientSP}";
fail = true;

Loading…
Cancel
Save