[wesnoth-commits] [wesnoth/wesnoth] 68bb48: Lua AIs: fix uses of new unit functions

mattsc noreply at github.com
Wed Dec 18 17:23:53 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 68bb48ddf125e84963d44157e5a79556135df769
      https://github.com/wesnoth/wesnoth/commit/68bb48ddf125e84963d44157e5a79556135df769
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-12-18 (Wed, 18 Dec 2019)

  Changed paths:
    M data/ai/lua/ai_helper.lua
    M data/ai/lua/battle_calcs.lua
    M data/ai/lua/ca_spread_poison.lua
    M data/ai/lua/generic_recruit_engine.lua
    M data/ai/lua/retreat.lua
    M data/ai/micro_ais/cas/ca_assassin_move.lua
    M data/ai/micro_ais/cas/ca_fast_attack_utils.lua
    M data/ai/micro_ais/cas/ca_healer_move.lua
    M data/ai/micro_ais/cas/ca_protect_unit_move.lua
    M data/ai/micro_ais/cas/ca_stationed_guardian.lua
    M data/ai/micro_ais/cas/ca_zone_guardian.lua

  Log Message:
  -----------
  Lua AIs: fix uses of new unit functions

I switched to using defense_on() and resistance_against() incorrectly in 55478e20. I had tested these, but apparently for cases when it does not make a difference ...

The change for movement_on() is for convenience and consistency with other code only.





More information about the Commits mailing list