Update phoenix_hunter.js

This commit is contained in:
Kaan Soral
2017-02-20 13:29:01 +03:00
committed by GitHub
parent f43406fd43
commit f0ede3270c
+2 -1
View File
@@ -4,13 +4,14 @@ 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 //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)
{ {
smart_move({to:"phoenix"},function(r){ smart_move({to:"phoenix"},function(r){
if(r) game_log("At another Phoenix spawn!","#E0C34C"); if(r) game_log("At another Phoenix spawn!","#E0C34C");
//TODO: "tunnel" is a dangerous map, find a corner and pull Phoenix there, if a mole targets you, use("town") and escape, heal, re-try
}); });
return; return;
} }