Skip to content

Commit

Permalink
Clarify MOVE_EFFECT_SLEEP sleep clause handling (#6161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawkkie authored Feb 1, 2025
1 parent 3b4acc4 commit 881c7bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/battle_ai_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 881c7bd

Please sign in to comment.