Browse Source

Correct Firebolt manacost

This partially reverts 4b74890489

Thanks to @Orthotope for pointing this out
pull/867/head
Anders Jenbo 6 years ago
parent
commit
fbf0713185
  1. 8
      Source/spells.cpp

8
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) {

Loading…
Cancel
Save