Skip to content

Ultras v3: a kill counts for the whole party - #36

Merged
noelrohi merged 3 commits into
Skuafrom
fix/35-party-kill
Oct 11, 2026
Merged

noelrohi merged 3 commits into
Skuafrom
fix/35-party-kill

Conversation

@noelrohi

@noelrohi noelrohi commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Fixes #35

Why

On 2026-10-11, Ultra Nulgath died at 13:17:11 UTC. alt2 had died 9 s earlier and got no Nulgath the Archfiend Defeated?. CheckArmyProgressBool passes only when every entry it sees is a 1, so alt1, alt3 and alt4 waited for alt2 and refought the respawned boss, wiping 3 more times. Each Fight clears the completion file before the party's barrier. After the third retreat alt1 got through the barrier about 0.3 s ahead of the others and checked while its own entry was the only one in the file (13:23:09.279; the others pre-seeded at .59 to .63). The check passed, alt1 turned 8692 in and moved on to Ultra Drago, and the other three fought on until the bot was stopped. All 11 v3 Ultras share this check.

What

  • CoreUltrav3.BossDownForParty(hasKill, heldAtStart, questId, partySize, syncFile, out myKill). A kill counts for the whole party: once any account gets the defeat item in this fight, the boss is down for all four and they leave together. An account without the item waits up to 5 s for its own drop. If none comes, it logs [BossDown] … got the kill with the reason (dead at the kill, so DoAllUltras reruns the boss; already done this period; or holding an item from before), then leaves without a turn-in. The file entries are 1 (got the item in this fight), 0 (can still gain from a kill) and 2 (nothing to gain: done this period, quest not taken, or an item held from before). When all four post 2, the party leaves without a fight. The answer doesn't depend on which account posts first.
  • CoreUltrav3.TurnInHeldKill(questId, hasKill) runs in each fight before the party's barrier. An account that already holds the item, from a kill before a Wipe or the Speaker's inventory item, turns the quest in there. If it still holds the item, the item doesn't count for the kill and UltraAttempt.Begin(heldKill, …) starts no Attempt. Begin no longer takes the previous Attempt, and the unused Killed property is gone.
  • CoreUltrav3.LeaveAfterKill(questId, myKill, endAttempt) turns the quest in for a holder and ends the Attempt. It replaces the block pasted into each boss. The earlier attempt.End(Kill) in the six bosses that report Attempts is gone.
  • MyArmyKey and FreshEntries replace the copied user|class key format and the entry parsing; CheckArmyProgressBool shares FreshEntries and its behaviour is unchanged.
  • DoAllUltras.IsBossComplete now also retries a turn-in for an item in the inventory (the Speaker's). If the game still refuses while the account holds the item, the boss counts as done for that account, since a refight can't help. This breaks the RunAll rerun loop.
  • All 11 IndividualUltras go through these helpers: Ezrajal, Warden, Engineer, Tyndarius, Drakath, Nulgath, Drago, Darkon, Dage, Speaker and Gramiel. None of them has its own completion path. The fight logic is untouched.
  • The playbook documents all of this where it describes completion, plus the Attempt note.

I picked "tell the party the boss is down" over "holders wait for everyone". Waiting means refighting a boss nobody set up for, up to the 10-Wipe limit. Ezrajal, Warden, Engineer and Speaker have no Wipe limit, so they would refight with no end. DoAllUltras already reruns a boss for any account that hasn't turned it in.

Verification

  • After the review changes, SKUA_DIR=/tmp/retro-i-skua skua scripts check <abs path> compiles all 11 Ultrasv3/IndividualUltras/*.cs and Ultrasv3/DoAllUltras.cs, plus ChallengeBosses/Kolrv3.cs and FarmGold/ArmyPrismatasv3.cs as other users of CoreUltrav3. To confirm the check compiles the branch's CoreUltrav3.cs, I broke it on purpose and the check failed.
  • python3 Tools/ForDevelopers/scripts_json.py check: matches all 1934 Scripts.
  • No live run: the four Engines are busy on DoAllUltras.

Risk

  • An account holding an item it can't turn in, while the quest is still active, fights as 2 and never counts for the kill. That is intended: the others' kill ends the fight.
  • When every other account is done this period and the one that still needs the boss misses the drop, the party keeps fighting for it. On bosses with a Wipe limit that stops after 10 Wipes; on Ezrajal, Warden, Engineer and Speaker it doesn't stop. Accounts that already turned the quest in may still get drops; I haven't confirmed whether they do.

🤖 Generated with Claude Code

noelrohi and others added 3 commits October 11, 2026 21:41
Every v3 Ultra finished on CheckArmyProgressBool over the boss's
completion file, which passes only when every entry it sees is a 1.
An account that was dead at the kill never gets the defeat item, so
the accounts that had it waited for that one and kept refighting the
respawned boss. Each Fight also clears the file before the party's
barrier, so the first account to check after a Wipe could pass on its
own entry. On Ultra Nulgath this let alt1 turn in and move on while
the other three stayed to fight.

The 11 boss scripts now finish on CoreUltrav3.BossDownForArmy. Once
any account holds the defeat item, the boss is down for the whole
party and everyone leaves together. Accounts that hold the item turn
the quest in. An account without the item waits up to 5 s for its own
drop, then logs who holds the kill, skips the turn-in and ends its
Attempt in `kill`. DoAllUltras runs the boss again for it on the next
pass. The playbook documents this where it describes completion.

Fixes #35

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of #36. A defeat item held before the fight counted as a kill
for the whole party. That covers the Speaker's inventory item and any
held item whose turn-in keeps failing. On the first tick it ended every
fight with nobody fighting, and DoAllUltras reran the boss forever.

- Each fight calls CoreUltrav3.TurnInHeldKill before the party's
  barrier. An account already holding the item turns the quest in
  there. If it still holds the item, the item doesn't count for the
  kill and the fight starts no Attempt (UltraAttempt.Begin now takes
  that flag in place of the previous Attempt).
- BossDownForParty (renamed from BossDownForArmy) posts 1 for an item
  got in this fight, 0 for an account that can still gain from a kill,
  and 2 for one that can't: done this period, quest not taken, or an
  item held from before. The party leaves without a fight when all
  four post 2. The [BossDown] message gives the reason.
- LeaveAfterKill turns the quest in for a holder and ends the Attempt,
  in place of the block pasted into all 11 bosses. The earlier
  End(Kill) in the six bosses that report Attempts is gone.
- MyArmyKey and FreshEntries replace the copied key format and the
  entry parsing (CheckArmyProgressBool shares FreshEntries).
- DoAllUltras.IsBossComplete also retries a turn-in for an item in
  the inventory. If the game still refuses while the account holds
  the item, the boss counts as done for that account, since a refight
  can't help.

Refs #35

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Second review of #36.

- BossDownForParty also says whether the boss was killed (`killed`).
  When the party leaves because no account can gain from a kill, the
  boss scripts log "Nothing to gain from <boss>: leaving without a
  fight." in place of "defeated", and the Attempt ends `stopped` in
  place of `kill`.
- TurnInHeldKill warns when the quest isn't taken but wasn't turned in
  this period either (locked, or a prerequisite missing), so a boss
  skipped that way shows in the log. In that case the non-holder's
  [BossDown] message names that reason, not a death.

Refs #35

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noelrohi
noelrohi merged commit 563d295 into Skua Oct 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ultras v3: after a kill one account leaves while the rest refight the respawned boss

1 participant