mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
Fix
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = class Move {
|
||||
this.power = data.power;
|
||||
this.pp = data.pp;
|
||||
this.type = firstUpperCase(data.type.name);
|
||||
this.contestType = firstUpperCase(data.contest_type.name);
|
||||
this.contestType = data.contest_type ? firstUpperCase(data.contest_type.name) : null;
|
||||
this.class = firstUpperCase(data.damage_class.name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user