Revert "Core/Spells: move spell resistance calculation into separate function (and some cosmetic changes)"

This reverts commit c45e665c860e1c555d0e081f8bb1b4ee0c160c72.