From f6dfccb5eb2dd4e9c34b88f0cf04880deb9921d8 Mon Sep 17 00:00:00 2001
From: pyuk-bot
Date: Wed, 5 May 2021 02:43:34 -0500
Subject: [PATCH] Add move target hints for four-player formats (#1777)
---
src/battle-tooltips.ts | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/battle-tooltips.ts b/src/battle-tooltips.ts
index 89e975f3c..5cf0a101b 100644
--- a/src/battle-tooltips.ts
+++ b/src/battle-tooltips.ts
@@ -682,7 +682,7 @@ class BattleTooltips {
text += '' + (move.desc || move.shortDesc) + '
';
- if (this.battle.gameType === 'doubles') {
+ if (this.battle.gameType === 'doubles' || this.battle.gameType === 'multi') {
if (move.target === 'allAdjacent') {
text += '◎ Hits both foes and ally.
';
} else if (move.target === 'allAdjacentFoes') {
@@ -696,6 +696,12 @@ class BattleTooltips {
} else if (move.target === 'any') {
text += '◎ Can target distant Pokémon in Triples.
';
}
+ } else if (this.battle.gameType === 'freeforall') {
+ if (move.target === 'allAdjacent' || move.target === 'allAdjacentFoes') {
+ text += '◎ Hits all foes.
';
+ } else if (move.target === 'adjacentAlly') {
+ text += '◎ Can target any foe in Free-For-All.
';
+ }
}
if (move.flags.defrost) {