Fix Trainer Slide message misbehaving (#4353)

This commit is contained in:
Bassoonian 2024-04-05 20:17:30 +02:00 committed by GitHub
parent e4d81150c0
commit 4aeae4a52e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4167,7 +4167,7 @@ u32 ShouldDoTrainerSlide(u32 battler, u32 which)
case TRAINER_SLIDE_LAST_LOW_HP:
if (sTrainerSlides[i].msgLastLowHp != NULL
&& GetEnemyMonCount(firstId, lastId, TRUE) == 1
&& BattlerHPPercentage(battler, GREATER_THAN_OR_EQUAL, 4)
&& BattlerHPPercentage(battler, LESS_THAN_OR_EQUAL, 4)
&& !gBattleStruct->trainerSlideLowHpMsgDone)
{
gBattleStruct->trainerSlideLowHpMsgDone = TRUE;