Skip to content
Browse files

Fix typo

  • Loading branch information...
1 parent f23f1ef commit 63fcba115ba3b76125536a02708b89aa060258aa @gabebw committed Sep 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 player.rb
View
2 player.rb
@@ -217,7 +217,7 @@ def location_of_closest_enemy
@enemy_location ||= nil
x,y = current_location
if taking_damage?
- dir = DIRECTIONS.detect?{|d| @warrior.feel(d).enemy? }
+ dir = DIRECTIONS.detect{|d| @warrior.feel(d).enemy? }
@enemy_location = @warrior.feel(dir).location
elsif taking_damage_from_afar? and just_started_taking_damage?
# Archer is shooting at us. They have a range of 2 squares.

0 comments on commit 63fcba1

Please sign in to comment.
Something went wrong with that request. Please try again.