Load boss battles properly
This commit is contained in:
parent
8798244351
commit
ba41118da7
@ -409,7 +409,14 @@ public class GolemBlockShot extends GolemAbility
|
||||
Location l = falling.getLocation();
|
||||
l.setY(entity.getLocation().getY());
|
||||
|
||||
Vector vector = UtilAlg.getTrajectory(l, target.getEyeLocation());
|
||||
Location loc1 = target.getEyeLocation();
|
||||
|
||||
if (loc1.getY() - l.getY() > 1)
|
||||
{
|
||||
loc1.setY(l.getY() + 1);
|
||||
}
|
||||
|
||||
Vector vector = UtilAlg.getTrajectory(l, loc1);
|
||||
|
||||
vector.multiply(13).add(new Vector(UtilMath.r(3) - 1, 0, UtilMath.r(3) - 1)).normalize();
|
||||
|
||||
|
@ -231,7 +231,8 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
_explosionManager.SetDebris(false);
|
||||
|
||||
if (serverConfig.GameList.contains(GameType.ChampionsDominate)
|
||||
|| serverConfig.GameList.contains(GameType.ChampionsTDM))
|
||||
|| serverConfig.GameList.contains(GameType.ChampionsTDM)
|
||||
|| serverConfig.GameList.contains(GameType.BossBattles))
|
||||
{
|
||||
_conditionManager = new SkillConditionManager(plugin);
|
||||
}
|
||||
@ -1292,7 +1293,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
|
||||
public void toggleChampionsModules(GameType gameType)
|
||||
{
|
||||
boolean isChamps = gameType == GameType.ChampionsDominate || gameType == GameType.ChampionsTDM;
|
||||
boolean isChamps = gameType == GameType.ChampionsDominate || gameType == GameType.ChampionsTDM || gameType == GameType.BossBattles;
|
||||
|
||||
if (_enabled == isChamps)
|
||||
{
|
||||
|
@ -286,7 +286,7 @@ public class BossBattles extends TeamGame
|
||||
private void setNewBoss(BattleBoss boss)
|
||||
{
|
||||
_currentBoss = createInstance(boss.getBoss(), new Location(
|
||||
WorldData.World, 0, 2, 0));
|
||||
WorldData.World, 0, 6, 0));
|
||||
|
||||
_currentBoss.setInstantSchematic(true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user