Multipack Wolves MAI bug fix: move a misplaced 'end'

This caused the AI to become inactive when the show_pack_number= key
was not set.
This commit is contained in:
mattsc 2013-07-03 19:15:58 -07:00
parent 969c6aef03
commit bd76e51af9

View file

@ -608,9 +608,9 @@ return {
local attacker = wesnoth.get_unit(best_attack.src.x, best_attack.src.y)
local defender = wesnoth.get_unit(best_attack.target.x, best_attack.target.y)
if cfg.show_pack_number then
W.label { x = attacker.x, y = attacker.y, text = "" }
AH.movefull_stopunit(ai, attacker, best_attack.dst.x, best_attack.dst.y)
W.label { x = attacker.x, y = attacker.y, text = "" }
end
AH.movefull_stopunit(ai, attacker, best_attack.dst.x, best_attack.dst.y)
if cfg.show_pack_number then
self:mai_animals_color_label(attacker.x, attacker.y, pack_number)
end