Clarify MOVE_EFFECT_SLEEP sleep clause handling (#6161)

This commit is contained in:
Pawkkie 2025-02-01 14:34:25 -05:00 committed by GitHub
parent 3b4acc40bc
commit 881c7bd8ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2398,6 +2398,7 @@ static inline bool32 IsMoveSleepClauseTrigger(u32 move)
const struct AdditionalEffect *additionalEffect = GetMoveAdditionalEffectById(move, i);
switch (additionalEffect->moveEffect)
{
// Skip MOVE_EFFECT_SLEEP as moves with a secondary chance of applying sleep are allowed by Smogon's rules (ie. Relic Song)
case MAX_EFFECT_EFFECT_SPORE_FOES:
case MAX_EFFECT_YAWN_FOE:
return TRUE;