mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 14:52:36 -05:00
Make hidden avatars last through into the next PS session (#870)
This commit is contained in:
committed by
Guangcong Luo
parent
055cc4adff
commit
05d450fe4f
@@ -868,9 +868,12 @@
|
||||
|
||||
case 'avatar':
|
||||
var parts = target.split(',');
|
||||
var avatar = parseInt(parts[0], 10);
|
||||
var avatarString = toId(parts[0]);
|
||||
var avatar = parseInt(avatarString, 10);
|
||||
if (avatar) {
|
||||
Tools.prefs('avatar', avatar);
|
||||
} else if (['bw2elesa', 'teamrocket', 'yellow', 'zinnia', 'clemont'].indexOf(avatarString) > -1) { // custom avatar exceptions
|
||||
Tools.prefs('avatar', '#' + avatarString);
|
||||
}
|
||||
return text; // Send the /avatar command through to the server.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user