Added a function for an NPC to 'attack' an opponent.