Update phoenix_hunter.js

This commit is contained in:
Kaan Soral
2017-02-20 13:26:29 +03:00
committed by GitHub
parent 4dcbe15b7c
commit f43406fd43
+1 -1
View File
@@ -4,6 +4,7 @@ setInterval(function(){
loot(); loot();
if(is_moving(character)) return; if(is_moving(character)) return;
// IDEA: Instead of returning when is_moving, if character.targets<2, farm nearby monsters if they are in_attack_range
var target=get_nearest_monster({type:"phoenix"}); var target=get_nearest_monster({type:"phoenix"});
if(!target) if(!target)
@@ -20,7 +21,6 @@ setInterval(function(){
character.real_x+(target.real_x-character.real_x)/2, character.real_x+(target.real_x-character.real_x)/2,
character.real_y+(target.real_y-character.real_y)/2 character.real_y+(target.real_y-character.real_y)/2
); );
// Walk half the distance
} }
else if(can_attack(target)) else if(can_attack(target))
{ {