forked from mirror/openmw-tes3mp
Don't require magicka for casting spells in God Mode (Fixes #2331)
This commit is contained in:
parent
7d76f1a113
commit
cbe135c60f
1 changed files with 1 additions and 1 deletions
|
@ -2623,7 +2623,7 @@ namespace MWWorld
|
||||||
|
|
||||||
// Check mana
|
// Check mana
|
||||||
MWMechanics::DynamicStat<float> magicka = stats.getMagicka();
|
MWMechanics::DynamicStat<float> magicka = stats.getMagicka();
|
||||||
if (magicka.getCurrent() < spell->mData.mCost)
|
if (magicka.getCurrent() < spell->mData.mCost && !(isPlayer && getGodModeState()))
|
||||||
{
|
{
|
||||||
message = "#{sMagicInsufficientSP}";
|
message = "#{sMagicInsufficientSP}";
|
||||||
fail = true;
|
fail = true;
|
||||||
|
|
Loading…
Reference in a new issue