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

Throwable blocks are not destroyed when Shadow Toroko is killed #32

Closed
DrippingYellow opened this issue Jul 10, 2023 · 1 comment
Closed

Comments

@DrippingYellow
Copy link

DrippingYellow commented Jul 10, 2023

It seems that when a Shadow Toroko's blocks have not been thrown yet, and the Toroko is killed, the block will be left floating there. Eventually, it will latch onto other NPCs, such as the projectiles shot by Shadow Misery.

The easy solution would be to add a check in case 1 of Toroko's blocks' code to see if npc->pNpc->code_char != 140, and if that is the case destroy the block entity. Like so:

if (npc->pNpc->code_char != 140)
	npc->cond |= 8;

Screen Shot 2023-07-10 at 12 15 03 PM

@TrashboxBobylev
Copy link
Member

Fixed in 1.43 beta-4

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

No branches or pull requests

2 participants