diff --git a/Source/spells.cpp b/Source/spells.cpp index 61f36ce81..5fa9c5ec9 100644 --- a/Source/spells.cpp +++ b/Source/spells.cpp @@ -16,12 +16,14 @@ int GetManaAmount(int id, int sn) sl = 0; } + if (sl > 0) { + adj = sl * spelldata[sn].sManaAdj; + } if (sn == SPL_FIREBOLT) { adj >>= 1; - } else if (sn == SPL_RESURRECT && sl > 0) { + } + if (sn == SPL_RESURRECT && sl > 0) { adj = sl * (spelldata[SPL_RESURRECT].sManaCost / 8); - } else if (sl > 0) { - adj = sl * spelldata[sn].sManaAdj; } if (sn == SPL_HEAL || sn == SPL_HEALOTHER) {