<p></p>
<p>FnrrfYgmSchnish reported that if a hero is in midair after a jump they can be hit by attacks that target "Ally including dead". Their position on the battlefield is where they would normally stand, except they're invisible. (If a hero in midair gets a turn, the cursor appears above them at that position too, which ought to be fixed too. But where to put the cursor?).</p>
<p>I thought that this was a release-blocker caused by my recent changes to targetting, but it's present in Fufluns and probably has always been present (the code was last touched 2007).</p>
<p>This is yet another bug caused by the bug-spawner called <code>BattleSprite.vis</code>. From the documentation of it I recently wrote:</p>
<blockquote>
<p>For combatants: Is alive (or dying interruptted) and visible (didn't jump).<br>
Gets set to YES while an enemy is performing an on-death attack.<br>
Gets set to NO while it's dissolving or fleeing after death, or<br>
or if jumped off-screen<br>
If true, treated as a valid target for attacks that can't hit dead.</p>
</blockquote>
<p>I don't think that jumping enemies are affected, because of how the targetting code works.</p>
<p>Here is a testcase: <a href="https://github.com/ohrrpgce/ohrrpgce/files/4532392/midair-targetable.zip">midair-targetable.zip</a> Recruit Freki, who has an ally-including-dead regen attack.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1120">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZWYPE7VTUHPWRGLZM3ROJYCJANCNFSM4MQTDPNA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZXZ5EV7VYDX4AZOJ4LROJYCJA5CNFSM4MQTDPNKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JBJNG7Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1120",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1120",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>