mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +00:00
Don't require magicka for casting spells in God Mode (Fixes #2331)
This commit is contained in:
parent
7d76f1a113
commit
cbe135c60f
@ -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…
x
Reference in New Issue
Block a user