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?).

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).

This is yet another bug caused by the bug-spawner called `BattleSprite.vis`. 
From the documentation of it I recently wrote:

>  For combatants: Is alive (or dying interruptted) and visible (didn't jump).
>  Gets set to YES while an enemy is performing an on-death attack.
>  Gets set to NO while it's dissolving or fleeing after death, or
>  or if jumped off-screen
>  If true, treated as a valid target for attacks that can't hit dead.

I don't think that jumping enemies are affected, because of how the targetting 
code works.

Here is a testcase: 
[midair-targetable.zip](https://github.com/ohrrpgce/ohrrpgce/files/4532392/midair-targetable.zip)
 Recruit Freki, who has an ally-including-dead regen attack.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1120
_______________________________________________
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to