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:
parent
969c6aef03
commit
bd76e51af9
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue