<p></p>
<p dir="auto">I've heard of two or three more people complaining of this bug recently. It's a problem not just because it causes stuck battles, but also it's bad for on-death effects, e.g. to transmog an enemy into a dead version.</p>
<p dir="auto">The fundamental problem is the timing of when poison/regen happens in a turn-based battle: right at the start of the round (in <code class="notranslate">start_next_turn</code>), before anyone picks their attacks, rather than at the same time as the attacks. So poison damage can trigger on-death attacks (and in future other kinds of reactions too) but those reactions can't happen because it's the wrong phase of battle. Notably, stun and mute are updated after attacks are chosen.</p>
<p dir="auto">So this does differ from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="581260482" data-permission-text="Title is private" data-url="https://github.com/ohrrpgce/ohrrpgce/issues/1007" data-hovercard-type="issue" data-hovercard-url="/ohrrpgce/ohrrpgce/issues/1007/hovercard" href="https://github.com/ohrrpgce/ohrrpgce/issues/1007">#1007</a> in several ways.</p>
<p dir="auto">We could move poison/regen to the end of battle once the attack queue is empty, so that from the view of the player the timing is still identical. We could then immediately perform any resulting on-death attack. That would be a turn earlier than it used to be but I doubt it would ever be a game-breaking change, more likely to be game-fixing. It will affect difficulty of some battles, but not much because the on-death bequesting enemy is currently untargettable and (I think) gets no turn.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1116#issuecomment-1263047649">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZTXO3EEWISRQRLNUA3WAZJ4ZANCNFSM4MQEKVBA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AMWGWZXI2KQSKRAMYP2R24DWAZJ4ZA5CNFSM4MQEKVBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJNEJHYI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><ohrrpgce/ohrrpgce/issues/1116/1263047649</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1116#issuecomment-1263047649",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1116#issuecomment-1263047649",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>