Fixed an unsafe TBL_PC* cast in battle_calc_elefix

This would cause a mapserver crash whenever the function was called by a
monster attack.
The issue was introduced in 03956104