Add move target hints for four-player formats (#1777)

This commit is contained in:
pyuk-bot
2021-05-05 02:43:34 -05:00
committed by GitHub
parent 46346b6be2
commit f6dfccb5eb

View File

@@ -682,7 +682,7 @@ class BattleTooltips {
text += '' + (move.desc || move.shortDesc) + '</p>';
if (this.battle.gameType === 'doubles') {
if (this.battle.gameType === 'doubles' || this.battle.gameType === 'multi') {
if (move.target === 'allAdjacent') {
text += '<p>&#x25ce; Hits both foes and ally.</p>';
} else if (move.target === 'allAdjacentFoes') {
@@ -696,6 +696,12 @@ class BattleTooltips {
} else if (move.target === 'any') {
text += '<p>&#x25ce; Can target distant Pok&eacute;mon in Triples.</p>';
}
} else if (this.battle.gameType === 'freeforall') {
if (move.target === 'allAdjacent' || move.target === 'allAdjacentFoes') {
text += '<p>&#x25ce; Hits all foes.</p>';
} else if (move.target === 'adjacentAlly') {
text += '<p>&#x25ce; Can target any foe in Free-For-All.</p>';
}
}
if (move.flags.defrost) {