Skip to content

Commit

Permalink
Fix [BUG] pagefaultgames#5081 Wrong visual text when using priority m…
Browse files Browse the repository at this point in the history
…oves on Psychic Terrain
  • Loading branch information
KennethWest committed Jan 5, 2025
1 parent 1be95e8 commit 66b3c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phases/move-phase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export class MovePhase extends BattlePhase {
if (failureMessage) {
failedText = failureMessage;
} else if (failedDueToTerrain) {
failedText = getTerrainBlockMessage(this.pokemon, this.scene.arena.getTerrainType());
failedText = getTerrainBlockMessage(targets[0], this.scene.arena.getTerrainType());
}

this.showFailedText(failedText);
Expand Down

0 comments on commit 66b3c48

Please sign in to comment.