Coward MAI: remove unnecessary condition

ai_helper.movefull_stopunit takes care of this internally.
This commit is contained in:
mattsc 2014-03-28 11:53:42 -07:00
parent 89192cef82
commit a017e584f2

View file

@ -102,10 +102,7 @@ function ca_coward:execution(ai, cfg)
end
--items.place_image(mx, my, "items/ring-gold.png")
-- (mx,my) is the position to move to
if (mx ~= unit.x or my ~= unit.y) then
AH.movefull_stopunit(ai, unit, mx, my)
end
AH.movefull_stopunit(ai, unit, mx, my)
if (not unit) or (not unit.valid) then return end
AH.checked_stopunit_all(ai, unit)