Skip to content

Commit

Permalink
Merge pull request #46 from Zarel/master
Browse files Browse the repository at this point in the history
update from main
  • Loading branch information
FlamePrince-PS authored Oct 29, 2018
2 parents fbb0927 + 0553f42 commit 3d95ed9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions chat-plugins/mafia-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ const IDEAs = {
`Mafia Reflexive Doctor`,
`Hirsute Mafia Goon`,
`Mafia Cupid`,
`Alpha Goon`,
`Alpha Mafia Goon`,
`Mafia Compulsive Hider`,
`Mafia Fruit Vendor`,
`Werewolf`,
Expand Down Expand Up @@ -1528,7 +1528,7 @@ const IDEAs = {
`Mafia Reflexive Doctor`,
`Hirsute Mafia Goon`,
`Mafia Cupid`,
`Alpha Goon`,
`Alpha Mafia Goon`,
`Mafia Compulsive Hider`,
`Mafia Fruit Vendor`,
`Werewolf`,
Expand Down
2 changes: 1 addition & 1 deletion chat-plugins/thehappyplace.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports.commands = {
Rooms.global.writeChatRoomData();
return;
}
const quote = target.split('|')[0].replace('"', '');
const quote = target.split('|')[0].replace(/"/g, '');
const author = target.split('|')[1];
if (!quote) return;
if (!author) {
Expand Down
2 changes: 0 additions & 2 deletions mods/gen3/random-teams.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class RandomGen3Teams extends RandomGen4Teams {
* @return {RandomTeamsTypes["RandomSet"]}
*/
randomSet(template, slot, teamDetails = {}) {
if (slot === undefined) slot = 1;
let baseTemplate = (template = this.getTemplate(template));
let species = template.species;

Expand Down Expand Up @@ -500,7 +499,6 @@ class RandomGen3Teams extends RandomGen4Teams {
}
}

item = 'Leftovers';
if (template.requiredItems) {
item = this.sample(template.requiredItems);

Expand Down
3 changes: 3 additions & 0 deletions mods/ssb/statuses.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,12 +543,15 @@ let BattleStatuses = {
noCopy: true,
onStart: function () {
this.add(`c|@Hippopotas|Something broke. If you're seeing this message, please PM a staff member about it.`);
this.add(`c|&HoeenHero|No, its not a bug Hippopotas, stop telling people to PM staff, its annoying.`);
},
onSwitchOut: function () {
this.add(`c|@Hippopotas|Something broke. If you're seeing this message, please PM a staff member about it.`);
this.add(`c|&HoeenHero|There's still no bug!`);
},
onFaint: function () {
this.add(`c|@Hippopotas|Something broke. If you're seeing this message, please PM a staff member about it.`);
this.add(`c|&HoeenHero|My PMs are flooded with bug reports :(`);
},
},
hipstersigilyph: {
Expand Down
2 changes: 1 addition & 1 deletion tournaments/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ const commands = {
if (result.charAt(0) === '1') {
connection.popup("Your team is valid for this tournament.");
} else {
const format = Dex.getFormat(tournament.originalFormat).name.replace(/\[/, '\\[').replace(/\]/, '\\]');
const format = Dex.getFormat(tournament.originalFormat).name.replace(/\[/g, '\\[').replace(/\]/g, '\\]');
connection.popup(`Your team was rejected for the following reasons:\n\n- ${result.slice(1).replace(/\n/g, '\n- ').replace(new RegExp(format, 'g'), 'this tournament')}`);
}
});
Expand Down

0 comments on commit 3d95ed9

Please sign in to comment.