1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-29 19:36:43 +00:00

Closes #1105: Do not reduce magicka if unable to cast

This commit is contained in:
scrawl 2014-01-14 03:34:11 +01:00
parent 396efd580b
commit 9de3abcb5f

View file

@ -2075,8 +2075,11 @@ namespace MWWorld
} }
// Reduce mana // Reduce mana
magicka.setCurrent(magicka.getCurrent() - spell->mData.mCost); if (!fail)
stats.setMagicka(magicka); {
magicka.setCurrent(magicka.getCurrent() - spell->mData.mCost);
stats.setMagicka(magicka);
}
} }
if (isPlayer && fail) if (isPlayer && fail)