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:
parent
396efd580b
commit
9de3abcb5f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user