This commit is contained in:
Harvey committed 2020-09-15 17:41:07 +08:00
1 parent f69ca07bd7
commit e38873f71a
5 files changed
+29 -11

No files matched your search

+5 -2
View File
@@ -21,8 +21,11 @@ export default function flipMix(art, player) {
$player.dataset.flip = flip;
}
const word = flip.replace(flip[0], flip[0].toUpperCase());
notice.show = `${i18n.get('Flip')}: ${i18n.get(word)}`;
if (typeof flip === 'string') {
const word = flip.replace(flip[0], flip[0].toUpperCase());
notice.show = `${i18n.get('Flip')}: ${i18n.get(word)}`;
}
art.emit('flip', flip);
},
});