1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +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
magicka.setCurrent(magicka.getCurrent() - spell->mData.mCost);
stats.setMagicka(magicka);
if (!fail)
{
magicka.setCurrent(magicka.getCurrent() - spell->mData.mCost);
stats.setMagicka(magicka);
}
}
if (isPlayer && fail)