diff --git a/js/client-battle.js b/js/client-battle.js
index 6d484849d..abd41d1fa 100644
--- a/js/client-battle.js
+++ b/js/client-battle.js
@@ -781,9 +781,13 @@
text += '(Type changed)
';
types = [pokemon.volatiles.typechange[2]];
}
- text += Tools.getTypeIcon(types[0]);
- if (types[1]) {
- text += ' '+Tools.getTypeIcon(types[1]);
+ if (types) {
+ text += Tools.getTypeIcon(types[0]);
+ if (types[1]) {
+ text += ' '+Tools.getTypeIcon(types[1]);
+ }
+ } else {
+ text += 'Types unknown';
}
text += '';
var exacthp = '';