Core/Spell: Correct the hit and miss counters in WriteSpellGoTargets

Fixes a client crash when spells hit (or miss) more than 255 targets (it was capped at 256 in 80b61fa584b019a298e129764cddba9f)
Thanks to @joschiwald for finding the mistake

Closes #12733