Update phoenix_hunter.js

This commit is contained in:
Kaan Soral
2017-02-20 14:25:04 +03:00
committed by GitHub
parent 869c7b8857
commit 8d9309534b
+8 -1
View File
@@ -3,7 +3,7 @@ setInterval(function(){
use_hp_or_mp(); use_hp_or_mp();
loot(); loot();
if(is_moving(character)) return; if(is_moving(character) || character.rip) 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"});
@@ -30,3 +30,10 @@ setInterval(function(){
} }
},160); },160);
function handle_death()
{
setTimeout(respawn,25000);
return true;
// This ensures you keep on farming, yet, to retain your XP, do enhance the logic for defense
}