Tooltips: Don't display Illusion hint on 4+ moves with Mimic (#1795)

This commit is contained in:
Leonard Craft III
2021-05-13 22:24:51 -05:00
committed by GitHub
parent 90df33a57f
commit cd7c6d29e7

View File

@@ -900,7 +900,7 @@ class BattleTooltips {
if (clientPokemon.moveTrack.filter(([moveName]) => {
if (moveName.charAt(0) === '*') return false;
const move = this.battle.dex.moves.get(moveName);
return !move.isZ && !move.isMax;
return !move.isZ && !move.isMax && move.name !== 'Mimic';
}).length > 4) {
text += `(More than 4 moves is usually a sign of Illusion Zoroark/Zorua.) `;
}