Fix spectators being teleported to map center
This commit is contained in:
parent
e7f97fa5b8
commit
7e40141794
@ -208,7 +208,7 @@ public class BawkBawkBattles extends TeamGame implements IThrown
|
||||
* - Players sometimes gain a life when dying (not confirmed)
|
||||
* - Treasure digger map breaking (few pieces of sand spawned in, everyone went in void)
|
||||
* - Block lobbers needs a slightly bigger platform
|
||||
* - Spectators being teleported over and over to the same location in certain games (no knockback aura around the game area)
|
||||
* - // Spectators being teleported over and over to the same location in certain games (no knockback aura around the game area)
|
||||
* - No suitable challenge was found ends the game, does not give exp
|
||||
* - Chicken platform needs water reducing (add lilipads?)
|
||||
* - // Pig dies in Volley pig
|
||||
@ -1225,7 +1225,7 @@ public class BawkBawkBattles extends TeamGame implements IThrown
|
||||
|
||||
Player player = event.getPlayer();
|
||||
|
||||
if (_challenge.getData().isDone(player))
|
||||
if (_challenge.getData().isDone(player) && !_chickenTeam.HasPlayer(player.getName(), false))
|
||||
{
|
||||
if (event.getTo().getY() <= 0)
|
||||
{
|
||||
|
@ -29,7 +29,7 @@ import nautilus.game.arcade.game.games.mineware.challenge.Challenge;
|
||||
import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType;
|
||||
|
||||
/**
|
||||
* A PvP based challenge where players have to find weapons.
|
||||
* A PvP based challenge where players have to find weapons.
|
||||
*/
|
||||
public class ChallengeTreasureDigger extends Challenge
|
||||
{
|
||||
@ -93,7 +93,7 @@ public class ChallengeTreasureDigger extends Challenge
|
||||
{
|
||||
ArrayList<Location> spawns = new ArrayList<Location>();
|
||||
int size = getArenaSize() - 2;
|
||||
|
||||
|
||||
for (Location location : circle(getCenter(), size, 1, true, false, 0))
|
||||
{
|
||||
spawns.add(location.add(0.5, 4.1, 0.5));
|
||||
@ -109,7 +109,7 @@ public class ChallengeTreasureDigger extends Challenge
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
Location center = getCenter();
|
||||
|
||||
|
||||
if (i > 0)
|
||||
{
|
||||
center.add(0, i, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user