ai_helper.get_attacks() now excludes hidden enemies by default -> they
need to be specifically included if they are to be attacked, as opposed
to having to be excluded when not.
This is not necessary for most other Micro AIs, but this AI moves
several units per execution. If an ambush or failed teleport or similar
happens, it is better to reconsider rather than pull through with the
previously planned moves.
This is not necessary for most other Micro AIs, but this AI moves
several units per execution. If an ambush or failed teleport or similar
happens, it is better to reconsider rather than pull through with the
previously planned moves.
Note that this requires that the enemy filter in the utils function now
matches the enemy units to be attacked, while previously it was set to
all enemy units NOT matching the filter. As this is not used anywhere
else, that’s not a problem, it’s just noted here for completeness.
[fire_event] should use [primary_unit] and [secondary_unit] from the call site unless specifically overridden. Since it fails to do so we have to re-set them explicitly.
If Deflador is killed by an assassin, he can't speak the line.
There was a TODO here about not liking the conversation. The only real problem was that Leollyn said "I told you .." when he hadn't and that only one friend had died, not several.
In S13 we subsume the Loyalists and Mages.
In S19 we subsume Lionel and his troops.
These occur in the midst of battle. The units may be damaged, poisoned, etc. We do not want to change that.
However, since their turn follows ours, they cannot move. Reset their moves to maximum so we can use them (or move them out of harm's way) immediately.
Use 'allies' and 'enemies' consistently, throughout.
Delfador's team names are, in order: Mages, Loyalists, and Rebels. All Undead are a team; as are Bandits. Goblins, Orcs and Trolls are the Pillagers. The NPC Loyalists switch from allies to enemies, but remain Loyalists throughout.
S08 Side 3 is an implemention detail which the player does not need to see.
S08 After Delfador is struck and fading to black, hide all sides to enhance the player's impression Delfador has died. There are no sides left on the map, anyway.
S09 After the undead join Delfador, their side no longer exists.
S11 After Chantal joins Delfador, her side no longer exists.
S12 When the Loyalists and Mages join Delfador, their sides no long exist.
S17 After Ulrek joins Delfador, his side no longer exists.
S19 When Lionel joins Delfador, his side no longer exists.
Kalenz should take over a no_leader side, have his unit brought in as a [unit] tag, and his unit should not have side attributes.
This caused a number of errors in stderr, including dumping the full WML for the scene.