mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Update phoenix_hunter.js
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user