Longer bufo invinc, decreases always

This commit is contained in:
Antonio Martinez 2025-06-25 14:59:22 -04:00
parent 6177ca0dcc
commit dd0b9a97fc
2 changed files with 2 additions and 4 deletions

View file

@ -65,7 +65,7 @@ void K_GivePowerUp(player_t* player, kartitems_t powerup, tic_t time)
}
S_StartSound(NULL, sfx_gsha7l);
player->flashing = 2*TICRATE;
player->flashing = 3*TICRATE;
player->mo->hitlag += BATTLE_POWERUP_VFX_TIME;
player->powerupVFXTimer = BATTLE_POWERUP_VFX_TIME;
Obj_SpawnPowerUpSpinner(player->mo, powerup, BATTLE_POWERUP_VFX_TIME);

View file

@ -4564,9 +4564,7 @@ void P_PlayerThink(player_t *player)
// Strength counts up to diminish fade.
if (player->flashing && player->flashing < UINT16_MAX &&
(player->spectator || !P_PlayerInPain(player)) &&
// Battle: flashing tics do not decrease in the air
(!(gametyperules & GTR_BUMPERS) || P_IsObjectOnGround(player->mo)))
(player->spectator || !P_PlayerInPain(player)))
{
player->flashing--;
}