|
|
@ -78,7 +78,7 @@ public class ArenaManager { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void endArena(Arena arena, PlayerCharacter winner, PlayerCharacter loser, String condition) throws MsgSendException { |
|
|
|
public static void endArena(Arena arena, PlayerCharacter winner, PlayerCharacter loser, String condition){ |
|
|
|
if (winner != null && loser != null) { |
|
|
|
if (winner != null && loser != null) { |
|
|
|
Logger.info("[ARENA] The fight between {} and {} is concluded. Victor: {}", |
|
|
|
Logger.info("[ARENA] The fight between {} and {} is concluded. Victor: {}", |
|
|
|
arena.player1.getName(), arena.player2.getName(), winner.getName()); |
|
|
|
arena.player1.getName(), arena.player2.getName(), winner.getName()); |
|
|
@ -86,10 +86,6 @@ public class ArenaManager { |
|
|
|
Logger.info("[ARENA] The fight between {} and {} is concluded. No Winner Declared.", |
|
|
|
Logger.info("[ARENA] The fight between {} and {} is concluded. No Winner Declared.", |
|
|
|
arena.player1.getName(), arena.player2.getName()); |
|
|
|
arena.player1.getName(), arena.player2.getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
if(loser != null) { |
|
|
|
|
|
|
|
PlayerCharacter.forceRespawn(loser); |
|
|
|
|
|
|
|
loser.removeEffectBySource(Enum.EffectSourceType.DeathShroud,41,false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// Teleport players to the arena location
|
|
|
|
// Teleport players to the arena location
|
|
|
|
Zone sdr = ZoneManager.getZoneByUUID(656); |
|
|
|
Zone sdr = ZoneManager.getZoneByUUID(656); |
|
|
|
MovementManager.translocate(arena.player1, Vector3fImmutable.getRandomPointOnCircle(sdr.getLoc(),50f), null); |
|
|
|
MovementManager.translocate(arena.player1, Vector3fImmutable.getRandomPointOnCircle(sdr.getLoc(),50f), null); |
|
|
|