Okay I think I found the error, it's attacking things but continues to attack even after the monster is dead lol. I've added a return to see if that helps.
Just a quick question, this means not attacker right so therefore wouldn't work?
Code:
if (!attacker.ContainsFlag3(Update.Flags3.MagicDefender))
Idk but I restarted it all again with what I have already figured from the source and I got the attack working properly? Voting system has been deleted (caused issues with NPCs and it took me a while to figure it out but I got there eventually)
No doubt there's going to be more issues but I will find them out in time I guess.