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