Details for commit 3bc54d3757

06-May-2024 (Monday) at 19:08:41 EDT by Kartinea
Commit 3bc54d3757
Parents: cf8a04c457

On branches: isometric_test, master

Fix invisibility affect on enemies

When performing the ShadowBlock check, we previously would return a nullptr actor if nothing was between the monster and the player. This resulted in the monster aiming as if you didn't have invisibility.

Fall back to returning the target actor if it is shadowed but nothing is in between the two.

1 files changed, 6 insertions, 1 deletions

Modified

src/playsim/shadowinlines.h (Diff)