From f3b6c60f1a2fd5384ea92d04aac7c8bb5d444abf Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 4 Oct 2020 13:59:14 -0700 Subject: [PATCH] Made piranha plant's hitbox consistent if event is missed --- src/game/behaviors/piranha_plant.inc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/behaviors/piranha_plant.inc.c b/src/game/behaviors/piranha_plant.inc.c index a6d265135..a41b9c048 100644 --- a/src/game/behaviors/piranha_plant.inc.c +++ b/src/game/behaviors/piranha_plant.inc.c @@ -268,9 +268,6 @@ void piranha_plant_act_biting(void) { cur_obj_init_animation_with_sound(0); - cur_obj_set_hitbox_radius_and_height(150.0f, 100.0f); - cur_obj_set_hurtbox_radius_and_height(150.0f, 100.0f); - // Play a bite sound effect on certain frames. if (is_item_in_array(frame, sPiranhaPlantBiteSoundFrames)) { cur_obj_play_sound_2(SOUND_OBJ2_PIRANHA_PLANT_BITE); @@ -366,6 +363,9 @@ void bhv_piranha_plant_loop(void) { network_init_object_field(o, &o->oTimer); } + cur_obj_set_hitbox_radius_and_height(150.0f, 100.0f); + cur_obj_set_hurtbox_radius_and_height(150.0f, 100.0f); + cur_obj_call_action_function(TablePiranhaPlantActions); #ifndef NODRAWINGDISTANCE // In WF, hide all Piranha Plants once high enough up.