It is not broken. Its part of a generic combat system where if a player is AFK and they are attacked, then the system runs the battle, not the player. so the system optimizes the damage done where as players may not choose the best ways to attack