if !@handle_battler.shooting_target.nil? and
@handle_battler.motion.shooting_controling
@handle_battler.shooting_target.y_pos = @handle_battler.y_min
for i in 0..$game_troop.enemies.size-1
break if not $game_troop.enemies[i].dead?
[url=home.php?mod=space&uid=188055]@d[/url] += 1 if $game_troop.enemies[i].dead?
end
@handle_battler.shooting_target.x_pos = $game_troop.enemies[@d].x_pos
if Input.trigger?(Input::RIGHT)
if @d < $game_troop.enemies.size-1
@d += 1
elsif @d == $game_troop.enemies.size-1
@d = 0
end
@handle_battler.shooting_target.x_pos = $game_troop.enemies[@d].x_pos
elsif Input.trigger?(Input::LEFT)
if @d == 0
@d = $game_troop.enemies.size-1
elsif @d > 0
@d -= 1
end
@handle_battler.shooting_target.x_pos = $game_troop.enemies[@d].x_pos
end
end