![]() The units on the outsides of a backstab don't have to be allied to each other, they just have to be enemies of the victim. That's hardcoded into the AI via attack.cpp's backstab_check() function, hence a unit test to check that WEAPON_SPECIAL_BACKSTAB activates in that situation. Add a new map with 4 sides all on separate castles. This is a variation of the generic 2p unit test map, extended in the south with a horizontal reflection of existing map. Add a MAP_FILE argument to COMMON_KEEP_A_B_C_D_UNIT_TEST, because it's the same setup except for the map file. |
||
---|---|---|
.. | ||
2p_single_castle.map | ||
4p_separate_castles.map | ||
4p_single_castle.map | ||
generic_unit_test.map | ||
move_skip_sighted.map | ||
pathfind_1.cfg | ||
sighted_events.map | ||
simple_find_path.map | ||
test_grunt_tod_damage.map | ||
test_hills_square.mask | ||
test_movetype.map |