Change the position of the logic handle

This commit is contained in:
Windyboy
2022-09-22 19:58:31 +08:00
parent 769e21115b
commit fd54c764e7
2 changed files with 3 additions and 3 deletions

View File

@@ -5551,9 +5551,6 @@ public class Character extends AbstractCharacterObject {
if (game.isOwner(this)) {
game.closeRoom(forceClose);
} else {
if (game.isMatchInProgress()) {
game.minigameMatchOwnerWins(true);
}
game.removeVisitor(forceClose, this);
}
}

View File

@@ -136,6 +136,9 @@ public class MiniGame extends AbstractMapObject {
public void removeVisitor(boolean forceClose, Character challenger) {
if (visitor == challenger) {
if (isMatchInProgress()) { // owner is winner if visitor leave in progress
minigameMatchOwnerWins(true);
}
if (forceClose) {
visitor.sendPacket(PacketCreator.getMiniGameClose(true, 4));
}