mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04: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
|
// 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…
x
Reference in New Issue
Block a user