#--------------------------------------------------------------------------
def make_basic_auto
case @active_battler.current_action.basic
when 0
@animation1_id = @active_battler.animation1_id
@animation2_id = @active_battler.animation2_id
if @active_battler.restriction == 3
target = $game_party.random_target_actor
@active_battler.auto_battle_targets = []
@active_battler.auto_battle_targets.push(target)
elsif @active_battler.restriction == 2
target = $game_troop.random_target_enemy
@active_battler.auto_battle_targets = []
@active_battler.auto_battle_targets.push(target)
end
@target_battlers = @active_battler.auto_battle_targets
for target in @target_battlers
target.attack_effect(@active_battler)
end
return
when 1
@help_window.set_text($data_system.words.guard, 1)
return
end
end
#--------------------------------------------------------------------------