mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 07:42:12 -05:00
Add move target hints for four-player formats (#1777)
This commit is contained in:
@@ -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>◎ Hits both foes and ally.</p>';
|
||||
} else if (move.target === 'allAdjacentFoes') {
|
||||
@@ -696,6 +696,12 @@ class BattleTooltips {
|
||||
} else if (move.target === 'any') {
|
||||
text += '<p>◎ Can target distant Pokémon in Triples.</p>';
|
||||
}
|
||||
} else if (this.battle.gameType === 'freeforall') {
|
||||
if (move.target === 'allAdjacent' || move.target === 'allAdjacentFoes') {
|
||||
text += '<p>◎ Hits all foes.</p>';
|
||||
} else if (move.target === 'adjacentAlly') {
|
||||
text += '<p>◎ Can target any foe in Free-For-All.</p>';
|
||||
}
|
||||
}
|
||||
|
||||
if (move.flags.defrost) {
|
||||
|
||||
Reference in New Issue
Block a user