Change the position of the logic handle
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user