mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
committed by
Matteo Pagliazzi
parent
d2b160438c
commit
1c6608d071
@@ -504,14 +504,17 @@ function setUserStyles (newMessage, user) {
|
|||||||
userStyles.preferences.costume = userCopy.preferences.costume;
|
userStyles.preferences.costume = userCopy.preferences.costume;
|
||||||
}
|
}
|
||||||
|
|
||||||
userStyles.stats = {};
|
if (userCopy.stats) {
|
||||||
if (userCopy.stats && userCopy.stats.buffs) {
|
userStyles.stats = {};
|
||||||
userStyles.stats.buffs = {
|
userStyles.stats.class = userCopy.stats.class;
|
||||||
seafoam: userCopy.stats.buffs.seafoam,
|
if (userCopy.stats.buffs) {
|
||||||
shinySeed: userCopy.stats.buffs.shinySeed,
|
userStyles.stats.buffs = {
|
||||||
spookySparkles: userCopy.stats.buffs.spookySparkles,
|
seafoam: userCopy.stats.buffs.seafoam,
|
||||||
snowball: userCopy.stats.buffs.snowball,
|
shinySeed: userCopy.stats.buffs.shinySeed,
|
||||||
};
|
spookySparkles: userCopy.stats.buffs.spookySparkles,
|
||||||
|
snowball: userCopy.stats.buffs.snowball,
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
newMessage.userStyles = userStyles;
|
newMessage.userStyles = userStyles;
|
||||||
|
|||||||
Reference in New Issue
Block a user