Skip to content

Commit

Permalink
Dr. Funkenstein
Browse files Browse the repository at this point in the history
  • Loading branch information
stjohncj committed Sep 15, 2013
1 parent 8af1c59 commit 04d67cb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions players/pwned.rb
Expand Up @@ -13,8 +13,7 @@ def move
end
end

private

private
def opponent_to_attack
attackee = best_opponent_to_kill
if attackee.nil?
Expand Down Expand Up @@ -75,7 +74,6 @@ def opponent_with_least_health
alive_opponents.each do |opponent|
potential_attackees << opponent if opponent.stats[:health] == min_health
end
#return random_from(potential_attackees)
return potential_attackees.first
end

Expand Down Expand Up @@ -132,7 +130,6 @@ def second_highest_rated_from(opponents)

def should_rest?
return true if is_vulnerable? or in_mob_attack_danger?
#return true if best_opponent_to_kill.nil?
return false
end

Expand Down

0 comments on commit 04d67cb

Please sign in to comment.