Fixed surf blob binding to invisible follower NPC on map reload (#7013)

This commit is contained in:
Bivurnum 2025-05-29 11:18:30 -05:00 committed by GitHub
parent e631f3baa9
commit 5dd45a0479
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1357,7 +1357,7 @@ void FollowerNPC_BindToSurfBlobOnReloadScreen(void)
follower = &gObjectEvents[GetFollowerNPCObjectId()];
TryUpdateFollowerNPCSpriteUnderwater();
if (GetFollowerNPCData(FNPC_DATA_SURF_BLOB) != FNPC_SURF_BLOB_RECREATE && GetFollowerNPCData(FNPC_DATA_SURF_BLOB) != FNPC_SURF_BLOB_DESTROY)
if (follower->invisible || (GetFollowerNPCData(FNPC_DATA_SURF_BLOB) != FNPC_SURF_BLOB_RECREATE && GetFollowerNPCData(FNPC_DATA_SURF_BLOB) != FNPC_SURF_BLOB_DESTROY))
return;
// Spawn the surf blob under the follower.