Skip to content

Commit

Permalink
Fixed a bug with nicknaming Pokémon
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Jan 28, 2016
1 parent 140e444 commit a796c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion battle/scripts/objects/general/pokemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function pokemon (data, validate) {
if (new RegExp(disallowed).test(nickname))
return true;
}))) {
self.name = nickname;
self.nickname = nickname;
return true;
}
return false;
Expand Down

0 comments on commit a796c23

Please sign in to comment.