Change the position of the logic handle

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

No files matched your search

-3
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);
}
}
+3
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));
}