CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.32k stars 4.14k forks source link

If zombie grab and pull you over a trap, it will break its logic #46527

Closed Salty-Panda closed 1 year ago

Salty-Panda commented 3 years ago

Describe the bug

If a zombie drag you over the trap it will mess up the activation/explosion logic

Steps To Reproduce

I set up a booby trap. A grappler zombie grabbed me and pulled to himself, OVER THE TRAP - I moved from the tile behind the trap to the one in front of it. I ran around the trap, then another zombie walked on it. I got a message that the trap was activated twice The trap caused no damage, I didn't even get the message that it caused no damage. Just nothing happened.

I tried setting up more traps, but without being dragged over it. The activation happened twice too, but it exploded properly.

Then I also tried stepping on landmines. the double activation happened again, but possibly for different reasons since the message is different.

Expected behavior

Grab-movement will activate the trap

Screenshots

image image

Versions and configuration

Additional content

The location of the explosion isn't set using global coords, cause when I was setting up and disarming a large number of land mines during training device skills, the explosions weren't centered on the tile in the front of me, but often as much as 8 tiles to the left/right.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.