Core/Spells: Fix some -Wconversion warnings

Attempt to fix #13152 by properly casting between data types during damage calculations.