mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 07:42:12 -05:00
Close button forfeit menu opens for unrated battles too
Previously, the close button forfeit menu only appeared for rated battles.
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
if (this.battle) this.battle.destroy();
|
||||
},
|
||||
requestLeave: function() {
|
||||
if (this.side && this.battle && this.battle.rated && !this.battle.done) {
|
||||
if (this.side && this.battle && !this.battle.done) {
|
||||
app.addPopup(ForfeitPopup, {room: this});
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user