Skip to content

fix for bot revive-from-corpse#306

Open
bozimmerman wants to merge 1 commit intomangoszero:masterfrom
bozimmerman:bot_fix_revive
Open

fix for bot revive-from-corpse#306
bozimmerman wants to merge 1 commit intomangoszero:masterfrom
bozimmerman:bot_fix_revive

Conversation

@bozimmerman
Copy link
Copy Markdown
Contributor

@bozimmerman bozimmerman commented Apr 24, 2026

This fixes the problem with Bots not reviving when they are released and get back to their corpse.
The fix is to rename the "dead" trigger to "bot dead".

The code was such that I can't prove it 100%, but I am really sure that the cause is that, when converting a trigger name to an object, it iterates through ALL named contexts for a match, which means that it could hit a "dead" value or "dead" action or whatever before hitting the correct "dead" trigger. By making the name more unique, this doesn't happen.

Whether my causal theory is correct, the solution absolutely works and is otherwise harmless.


This change is Reviewable

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@AppVeyorBot
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants