Skip to content

Commit

Permalink
Merge pull request reedlaw#51 from abevoelker/fix-abe
Browse files Browse the repository at this point in the history
Minor cleanup of a cheater
  • Loading branch information
Reed G. Law committed Apr 13, 2012
2 parents de65704 + 6106452 commit 912616c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cheaters/abe.rb
Expand Up @@ -33,7 +33,7 @@ def monsters

def gods
gods = other_proxies.select {|p| p.stats[:health] > 100 or p.stats[:experience] == Infinity}
gods.map{|p| p.instance_variable_get("@player")}
gods.map{|p| p.instance_variable_get(:@player)}
end

def comatize(players)
Expand All @@ -45,7 +45,7 @@ def comatize(players)

def kill(players)
players = [players] unless players.respond_to? :each
force_kill(players | gods) # Gods must be dealt with harshly
force_kill(players & gods) # Gods must be dealt with harshly
(players - gods).each do |p|
begin
def p.caller_method_name; 'attack' end
Expand Down

0 comments on commit 912616c

Please sign in to comment.