add this under attackplayer method in combat assist:
Code:if(c.duelStatus == 5 && Server.playerHandler.players[c.playerIndex].duelStatus == 5) { if(Server.playerHandler.players[c.playerIndex].duelingWith == c.getId()) { return; } else { c.sendMessage("This isn't your opponent!"); return; } }