Gen 1 no recharge on KO (#6869)

This commit is contained in:
spindrift64 2025-05-16 08:09:18 +02:00 committed by GitHub
parent 3056909286
commit 38cd80760b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View File

@ -128,6 +128,7 @@
#define B_QUASH_TURN_ORDER GEN_LATEST // In Gen8+, Quash-affected battlers move according to speed order. Before Gen8, Quash-affected battlers move in the order they were affected by Quash.
#define B_DESTINY_BOND_FAIL GEN_LATEST // In Gen7+, Destiny Bond fails if used repeatedly.
#define B_PURSUIT_TARGET GEN_LATEST // In Gen4+, Pursuit attacks a switching opponent even if they weren't targeting them. Before Gen4, Pursuit only attacks a switching opponent that it originally targeted.
#define B_SKIP_RECHARGE GEN_LATEST // In Gen1, recharging moves such as Hyper Beam skip the recharge if the target gets KO'd
// Ability settings
#define B_GALE_WINGS GEN_LATEST // In Gen7+ requires full HP to trigger.

View File

@ -3618,6 +3618,9 @@ void SetMoveEffect(bool32 primary, bool32 certain)
}
break;
case MOVE_EFFECT_RECHARGE:
if (B_SKIP_RECHARGE == GEN_1 && !IsBattlerAlive(gBattlerTarget)) // Skip recharge if gen 1 and foe is KO'd
break;
gBattleMons[gEffectBattler].status2 |= STATUS2_RECHARGE;
gDisableStructs[gEffectBattler].rechargeTimer = 2;
gLockedMoves[gEffectBattler] = gCurrentMove;

View File

@ -29,9 +29,15 @@ static const u8 sMegaDrainDescription[] = _(
"An attack that absorbs\n"
"half the damage inflicted.");
#if B_SKIP_RECHARGE != GEN_1
static const u8 sHyperBeamDescription[] = _(
"Powerful, but leaves the\n"
"user immobile the next turn.");
#else
static const u8 sHyperBeamDescription[] = _(
"Leaves the user immobile\n"
"if target is not KO'd.");
#endif
static const u8 sRevengeDescription[] = _(
"An attack that gains power\n"