Fixed bug with magic damage calc.