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

actorid
scrawl 11 years ago
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…
Cancel
Save