Fix [BUG] #5081 Wrong visual text when using priority moves on Psychic Terrain (#5091)

* Fix [BUG] #5081 Wrong visual text when using priority moves on Psychic Terrain

* Apply suggestions from code review for global scene change
This commit is contained in:
Kenneth West 2025-02-16 16:18:19 -05:00 committed by GitHub
parent ef11527b9a
commit 4bc617bd5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ export class MovePhase extends BattlePhase {
if (failureMessage) { if (failureMessage) {
failedText = failureMessage; failedText = failureMessage;
} else if (failedDueToTerrain) { } else if (failedDueToTerrain) {
failedText = getTerrainBlockMessage(this.pokemon, globalScene.arena.getTerrainType()); failedText = getTerrainBlockMessage(targets[0], globalScene.arena.getTerrainType());
} }
this.showFailedText(failedText); this.showFailedText(failedText);