Fixes Misty Terrain displaying wrong message (#5742)

This commit is contained in:
Alex 2024-11-30 23:32:46 +01:00 committed by GitHub
parent cc05187ab1
commit 51fbc80ac5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2784,7 +2784,7 @@ u8 DoBattlerEndTurnEffects(void)
&& !IsLeafGuardProtected(battler))
{
CancelMultiTurnMoves(battler);
gEffectBattler = battler;
gEffectBattler = gBattlerTarget = battler;
if (IsBattlerTerrainAffected(battler, STATUS_FIELD_ELECTRIC_TERRAIN))
{
gBattleCommunication[MULTISTRING_CHOOSER] = B_MSG_TERRAINPREVENTS_ELECTRIC;