class Scene_Battle alias jet9283_u_t_e_s update_target_enemy_selection unless $@ def update_target_enemy_selection(*args, &block) for enemy in $game_troop.existing_members f = enemy.spriteset x = f.x - f.width / 2 y = f.y - f.height / 2 if Mouse.area?(x, y, f.width, f.height) @target_enemy_window.index = $game_troop.existing_members.index(enemy) end end jet9283_u_t_e_s(*args, &block) end end