Prevented lava from taking extra lives from bubbled players
This commit is contained in:
parent
1fc86ce710
commit
3762c68fef
|
@ -2041,6 +2041,7 @@ void check_death_barrier(struct MarioState *m) {
|
|||
}
|
||||
|
||||
void check_lava_boost(struct MarioState *m) {
|
||||
if (m->action == ACT_BUBBLED) { return; }
|
||||
if (!(m->action & ACT_FLAG_RIDING_SHELL) && m->pos[1] < m->floorHeight + 10.0f) {
|
||||
if (!(m->flags & MARIO_METAL_CAP)) {
|
||||
m->hurtCounter += (m->flags & MARIO_CAP_ON_HEAD) ? 12 : 18;
|
||||
|
|
|
@ -372,6 +372,10 @@ u32 common_air_action_step(struct MarioState *m, u32 landAction, s32 animation,
|
|||
update_air_without_turn(m);
|
||||
|
||||
stepResult = perform_air_step(m, stepArg);
|
||||
if (m->action == ACT_BUBBLED && stepResult == AIR_STEP_HIT_LAVA_WALL) {
|
||||
stepResult = AIR_STEP_HIT_WALL;
|
||||
}
|
||||
|
||||
switch (stepResult) {
|
||||
case AIR_STEP_NONE:
|
||||
set_mario_animation(m, animation);
|
||||
|
|
Loading…
Reference in New Issue