Allow bubbled players to go through vanish cap walls

This commit is contained in:
MysterD 2020-09-24 18:54:30 -07:00
parent 4ab4a109da
commit 149859e5ab
2 changed files with 3 additions and 0 deletions

View file

@ -397,6 +397,8 @@ void mario_set_bubbled(struct MarioState* m) {
gCamera->cutscene = 0;
m->statusForCamera->action = m->action;
m->statusForCamera->cameraEvent = 0;
m->marioObj->activeFlags |= ACTIVE_FLAG_MOVE_THROUGH_GRATE;
extern s16 gCutsceneTimer;
gCutsceneTimer = 0;

View file

@ -942,6 +942,7 @@ s32 act_bubbled(struct MarioState* m) {
// pop bubble
if (m->playerIndex == 0 && distanceToPlayer < 120 && is_player_active(targetMarioState) && m->numLives != -1) {
m->marioObj->activeFlags &= ~ACTIVE_FLAG_MOVE_THROUGH_GRATE;
m->hurtCounter = 0;
m->healCounter = 31;
m->health = 0x100;