mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 13:03:31 +00:00

As reported on the forum in https://forums.wesnoth.org/viewtopic.php?p=672374#p672374 If a unit with "last strike" ([firststrike] special with apply_to=opponent, on any of its attacks) was targeted by other unit for attack, wesnoth crashed. Fix similar problems for other weapon specials like poisons, when two users of specials with apply_to=opponent fought, one fighter only could be poisoned or slowed. * Add a unit test for poison * Add a unit test for firststrike and laststrike