1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +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,9 +2075,12 @@ namespace MWWorld
}
// Reduce mana
if (!fail)
{
magicka.setCurrent(magicka.getCurrent() - spell->mData.mCost);
stats.setMagicka(magicka);
}
}
if (isPlayer && fail)
MWBase::Environment::get().getWindowManager()->messageBox(message);