Apply suggestions from code review for global scene change

Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
This commit is contained in:
Kenneth West 2025-02-06 15:07:22 -05:00 committed by GitHub
parent 1973f47fc1
commit 447ff6c48b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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