7 Commits

Author SHA1 Message Date
mattsc
b302289402 Micro AIs: correctly deal with hidden and petrified enemies
Previously, the Micro AI behavior was inconsistent at best when it came
to dealing with these units and could even result in AI errors when an
AI unit was ambushed or a petrified unit was in the way of a move. Now,
both types of units are properly "ignored" and the AI moves have been
made robust against unexpected events such as ambushes. Incidentally,
the latter also makes the AI more robust against WML events doing
things the AI cannot know about (such as removing units).
2016-10-16 19:59:19 -07:00
Celtic Minstrel
85a498ba15 Fast MAI: Correctly honour the attacks aspect if set 2016-03-30 01:04:42 -04:00
Celtic Minstrel
c79874086d MicroAIs: Update all to use the new [args] syntax
Except for Protect Unit, all of them seem to still work correctly.
2016-03-27 15:13:21 -04:00
Celtic Minstrel
2ed5e7815f MicroAIs: Fix those that honour the avoid aspect improperly
This affects the Hang Out and Fast MAIs.
2016-03-22 07:22:22 -07:00
mattsc
67f868306e Fast Micro AI: clean up unused debug output 2015-09-07 09:17:45 -07:00
mattsc
f06030b0f5 Fast Micro AI: add support for [avoid] tags
This can either be an [avoid] tag inside the [micro_ai] tag itself, or
the [avoid] tag of the default AI (e.g. as defined in the side
definition).  If both are given, the former has priority.
2015-09-06 13:09:20 -07:00
mattsc
e098ef180d Fast Micro AI: add new set attack utility functions
These functions are newer and more efficient versions of those in
battle_calcs.lua. They are much faster in many situations.
2015-09-02 17:05:49 -07:00