insomniac-eeper / AnotherCrabsTreasureTwitchIntegration

Twitch integration for the game Another Crab's Treasure
GNU General Public License v3.0
0 stars 0 forks source link

Hypnosis affliction effect won't work if enemy is outside of specific range #1

Closed insomniac-eeper closed 2 weeks ago

insomniac-eeper commented 2 weeks ago

See title, this is problematic because effect goes through as applied even though the game internally does not actually apply hypnosis.

Best course of action is probably to add a distance check to closest entity search and if below threshold return apply as false so it ideally goes back on the retry queue.

insomniac-eeper commented 2 weeks ago

It seems that this actually a problem with the angle between the target entity and the player. If the angle difference between player view forward and the enemy is >= 95 degrees the effect does not apply as expected. I'm guessing this is a safeguard or way of ensuring the enemy is "in view" even though LoS is not otherwise evaluated