Updaded modaldialog and bot (added anti push)

This commit is contained in:
OTCv8
2019-11-08 05:31:38 +01:00
parent 7d9a81d871
commit d78af570ea
8 changed files with 109 additions and 16 deletions

View File

@@ -578,7 +578,7 @@ Panel
-- wait if attacking/following creature
local attacking = g_game.getAttackingCreature()
local following = g_game.getFollowingCreature()
if (attacking and context.getCreatureById(attacking:getId())) or (following and context.getCreatureById(following:getId())) then
if (attacking and context.getCreatureById(attacking:getId()) and not attacking.ignoreByWaypoints) or (following and context.getCreatureById(following:getId())) then
executeNextMacroCall = false
return
end