Respect return values of legacy attack in chain negotiation (#27724)

This commit is contained in:
warriorstar-orion
2025-01-06 17:35:20 +00:00
committed by GitHub
parent 06940dd879
commit 1277a01baa
2 changed files with 8 additions and 1 deletions
@@ -15,3 +15,10 @@
cultist.click_on(target)
TEST_ASSERT_EQUAL(target.puppet.health, target.puppet.getMaxHealth(), "cultist attacking cultist with dagger caused damage")
// Test some new -> old attack chain shenanigans
target.puppet.mind.remove_antag_datum(/datum/antagonist/cultist)
ADD_TRAIT(cultist.puppet, TRAIT_PACIFISM, "test")
cultist.click_on(target)
TEST_ASSERT_EQUAL(target.puppet.health, target.puppet.getMaxHealth(), "non-cultist attacked by pacifist")