Fix errors

Hello! You have an error in one line 2141
spamming errors to the console
You need to replace the line `if (hitinfo?.Initiator != null && (BaseCombatEntity)hitinfo?.Initiator == entity)`
to `if (hitinfo?.Initiator != null && hitinfo.Initiator is BaseCombatEntity && (hitinfo.Initiator as BaseCombatEntity) == entity)`

Whats damamaging the npc thats not a BaseCombatEntity?

I can't say for sure, but my friend had spammed errors, and after this fix, the errors disappeared.