This commit is contained in:
samczsun 2017-03-13 13:50:16 -04:00 committed by cnr
parent d69c4b3dca
commit fceda64a5a

View File

@ -1,8 +1,10 @@
package nautilus.game.arcade.game.games.dragonescape;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
@ -200,6 +202,18 @@ public class DragonEscape extends SoloGame
this.WorldWaterDamage = 2;
}
@Override
public List<Player> getWinners()
{
if (GetState().ordinal() >= GameState.End.ordinal())
{
if (_winner == null)
return Collections.emptyList();
return Collections.singletonList(_winner);
}
return null;
}
@EventHandler
public void SpawnDragon(GameStateChangeEvent event)
{