![]() 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. |
||
---|---|---|
.. | ||
generic_backstab_test.cfg | ||
pathfind_answers.cfg | ||
readme.txt | ||
shroud.cfg | ||
start_position_common_keep_a_b.cfg | ||
start_position_common_keep_a_b_c_d.cfg | ||
start_position_generic.cfg | ||
test.lua | ||
unit_setup.cfg | ||
wml_unit_test_macros.cfg |
This is place to put macros that are only useful for running unit tests.