mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 19:36:43 +00:00
Closes #1105: Do not reduce magicka if unable to cast
This commit is contained in:
parent
396efd580b
commit
9de3abcb5f
1 changed files with 5 additions and 2 deletions
|
@ -2075,8 +2075,11 @@ namespace MWWorld
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reduce mana
|
// Reduce mana
|
||||||
magicka.setCurrent(magicka.getCurrent() - spell->mData.mCost);
|
if (!fail)
|
||||||
stats.setMagicka(magicka);
|
{
|
||||||
|
magicka.setCurrent(magicka.getCurrent() - spell->mData.mCost);
|
||||||
|
stats.setMagicka(magicka);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isPlayer && fail)
|
if (isPlayer && fail)
|
||||||
|
|
Loading…
Reference in a new issue