mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Make move tooltips more concise
This commit is contained in:
parent
271a25aefe
commit
60f57aad7f
|
|
@ -215,20 +215,14 @@ var BattleTooltips = (function () {
|
|||
if ('defrost' in move.flags) {
|
||||
text += '<p>The user thaws out if it is frozen.</p>';
|
||||
}
|
||||
if (!('protect' in move.flags) && move.target !== 'self') {
|
||||
if (!('protect' in move.flags) && move.target !== 'self' && move.target !== 'allySide' && move.target !== 'allyTeam') {
|
||||
text += '<p class="movetag">Bypasses Protect <small>(and Detect, King\'s Shield, Spiky Shield)</small></p>';
|
||||
}
|
||||
if ('authentic' in move.flags) {
|
||||
text += '<p class="movetag">Bypasses Substitute <small>(but does not break it)</small></p>';
|
||||
}
|
||||
if (!('reflectable' in move.flags) && move.target !== 'self' && move.category === 'Status') {
|
||||
text += '<p class="movetag">✓ Nonreflectable <small>(can\'t be bounced by Magic Coat/Bounce)</small></p>';
|
||||
}
|
||||
if (!('mirror' in move.flags) && move.target !== 'self') {
|
||||
text += '<p class="movetag">✓ Nonmirror <small>(can\'t be copied by Mirror Move)</small></p>';
|
||||
}
|
||||
if (!('snatch' in move.flags) && (move.target === 'self' || move.target === 'allyTeam' || move.target === 'adjacentAllyOrSelf')) {
|
||||
text += '<p class="movetag">✓ Nonsnatchable <small>(can\'t be copied by Snatch)</small></p>';
|
||||
if (!('reflectable' in move.flags) && move.target !== 'self' && move.target !== 'allySide' && move.target !== 'allyTeam' && move.category === 'Status') {
|
||||
text += '<p class="movetag">✓ Not bounceable <small>(can\'t be bounced by Magic Coat/Bounce)</small></p>';
|
||||
}
|
||||
|
||||
if ('contact' in move.flags) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user