Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011344Dwarf FortressLegends Mode -- Generalpublic2020-02-09 02:002020-02-13 01:16
Kromtec 
Toady One 
normalminorhave not tried
resolvedfixed 
0.47.02 
0.47.03 
0011344: In the "attacked site" event, the defender can also be the mercenaries that are hired by the attackers
Example:
    <historical_event>
        <id>84082</id>
        <year>105</year>
        <seconds72>16800</seconds72>
        <type>attacked site</type>
        <attacker_civ_id>79</attacker_civ_id>
    ---> <defender_civ_id>456</defender_civ_id>
    ---> <site_civ_id>456</site_civ_id>
        <site_id>265</site_id>
        <attacker_general_hfid>1761</attacker_general_hfid>
        <defender_general_hfid>5426</defender_general_hfid>
    ---> <attacker_merc_enid>456</attacker_merc_enid>
    </historical_event>

The Striteful Palisade are Defenders, SiteEntity and AttackerMercenaries...

In DF Legends Mode:
In the early spring of 105, The Hate of Light attacked The Striteful Palisade at Snarlinghailed. The goblin Snodub Hexautumns the Fluke of Persuaders led the attack, and the defenders were led by the dwarf Kogsak Theatermountain. The Striteful Palisade were hired by the attackers.
No tags attached.
Issue History
2020-02-09 02:00KromtecNew Issue
2020-02-09 02:25KromtecNote Added: 0039970
2020-02-13 01:16Toady OneNote Added: 0040038
2020-02-13 01:16Toady OneStatusnew => resolved
2020-02-13 01:16Toady OneFixed in Version => Next Version
2020-02-13 01:16Toady OneResolutionopen => fixed
2020-02-13 01:16Toady OneAssigned To => Toady One

Notes
(0039970)
Kromtec   
2020-02-09 02:25   
The "field battle" event has the same issue and in "battle" eventcollections the same historical figures can be in <attacking_hfid> and <defending_hfid>, so it seams there is a fundamental problem.
(0040038)
Toady One   
2020-02-13 01:16   
Ha ha, there were a few non-xml problems here, and I've cleaned them up for next time. Could even get mummies and tomb-builders fighting over who controls the zombies (and sending them against themselves leading to -1,000,000,000 kills and other nonsense.)