From 0bb62eb38186de7e3d6f370047c8d222b0b3a19e Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Sat, 9 Mar 2024 11:44:44 -0500 Subject: [PATCH] Make recovery heart only heal the player who interacted with it --- src/game/behaviors/recovery_heart.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/behaviors/recovery_heart.inc.c b/src/game/behaviors/recovery_heart.inc.c index 1dcb0de6f..f6f8f04a5 100644 --- a/src/game/behaviors/recovery_heart.inc.c +++ b/src/game/behaviors/recovery_heart.inc.c @@ -46,7 +46,7 @@ void bhv_recovery_heart_loop(void) { for (s32 i = 0; i < MAX_PLAYERS; i++) { if (!gMarioStates[i].visibleToEnemies) { continue; } if (!is_player_active(&gMarioStates[i])) { continue; } - if (&gMarioStates[i] == nearestInteractingState || dist_between_objects(o, gMarioStates[i].marioObj) < 1000) { + if (&gMarioStates[i] == nearestInteractingState || (dist_between_objects(o, gMarioStates[i].marioObj) < 1000 && configCoopCompatibility)) { gMarioStates[i].healCounter += 4; } }