Loading
Pass ammo to Hit handler by record id
Fixes #8664 (closed).
Projectiles aren't real objects so passing them as LObjects makes little sense. They're only ever going to be invalid. As such this MR passes the projectile's id instead.
Note that for throwing weapons, weapon is always going to be an invalid object because weapon == projectile in MWMechanics::projectileHit. This doesn't matter too much beyond the switch to ptrOrEmpty in HitAction. The added condition in attackerIsUnarmedCreature shouldn't be necessary, but seems like it might worthwhile for modders who don't feel a strong need to pass invalid objects.
HitAttemptOnMe works again with this change.