Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bashable furnitures not bashable by monsters #1900

Merged

Conversation

leoCottret
Copy link
Collaborator

@leoCottret leoCottret commented Sep 23, 2022

Summary

Purpose of change

Fix #1691
When a monster tries to reach the player, but has a bashable furniture that he can bash on his path, he'll try to bash it endlessly.
But the function used to bash the terrain/furniture has some bug that don't allow the monster to bash it.

More precisely, the function checks if the terrain is flat/is a road, then if it's bashable, and will stop the bashing attempt if it isn't. But it doesn't check if there is a bashable furniture on it.

This can be observed with a zombie soldier/zombie hulk and a large canvas door/animal skin wall/cardboard wall on a flat terrain

Describe the solution

Fix the function so it checks if there's is a bashable furniture on the terrain before stoping the bashing attempt.

Testing

In the same situation as the bug report, fixing the function made the zombie bash the wall at will

@Coolthulhu Coolthulhu self-assigned this Sep 24, 2022
@Coolthulhu Coolthulhu merged commit 9d078ef into cataclysmbnteam:upload Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zombie not moving
2 participants