Fix bosses
This commit is contained in:
parent
f6c7eaf28b
commit
2b4aecd882
@ -108,6 +108,7 @@ public abstract class BossWorldEvent<T extends EventCreature<?>> extends WorldEv
|
||||
drop.getWorld().dropItem(drop, new ItemBuilder(Material.IRON_INGOT).setTitle(C.cDRedB + "Old Silver Token").setLore(C.cRed + "This token pulses with an evil aura.").setGlow(true).build());
|
||||
}, DELAY_TILL_DROP_REWARD);
|
||||
Bukkit.broadcastMessage(getDeathMessage());
|
||||
stop();
|
||||
}
|
||||
}
|
||||
}
|
@ -16,14 +16,14 @@ public class SkeletonBoss extends BossWorldEvent<SkeletonCreature>
|
||||
|
||||
public SkeletonBoss(WorldEventManager manager)
|
||||
{
|
||||
super("Skeleton King", manager.getBossArenaLocationFinder().getIronWizardCenter(), 50, manager.getBossArenaLocationFinder().getIronWizardPads().getLeft(), manager.getBossArenaLocationFinder().getIronWizardPads().getRight(), manager.getDisguiseManager(), manager.getClans().getProjectile(), manager.getClans().getDamageManager(), manager.getBlockRestore(), manager.getClans().getCondition());
|
||||
super("Skeleton King", manager.getBossArenaLocationFinder().getSkeletonKingCenter(), 50, manager.getBossArenaLocationFinder().getSkeletonKingPads().getLeft(), manager.getBossArenaLocationFinder().getSkeletonKingPads().getRight(), manager.getDisguiseManager(), manager.getClans().getProjectile(), manager.getClans().getDamageManager(), manager.getBlockRestore(), manager.getClans().getCondition());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void customStart()
|
||||
{
|
||||
Bukkit.broadcastMessage(F.main(getName(), "The evils of the world have manifested in the form of the " + getName() + "! Become the champion of Light and destroy him!"));
|
||||
spawnNecromancer(getCenterLocation());
|
||||
spawnSkeletonKing(getCenterLocation());
|
||||
Bukkit.getScheduler().runTaskLater(UtilServer.getPlugin(), () ->
|
||||
{
|
||||
canMove = true;
|
||||
@ -40,11 +40,12 @@ public class SkeletonBoss extends BossWorldEvent<SkeletonCreature>
|
||||
return minionCreature;
|
||||
}
|
||||
|
||||
private SkeletonCreature spawnNecromancer(Location location)
|
||||
private SkeletonCreature spawnSkeletonKing(Location location)
|
||||
{
|
||||
SkeletonCreature necromancerCreature = new SkeletonCreature(this, location);
|
||||
registerCreature(necromancerCreature);
|
||||
return necromancerCreature;
|
||||
SkeletonCreature kingCreature = new SkeletonCreature(this, location);
|
||||
registerCreature(kingCreature);
|
||||
setBossCreature(kingCreature);
|
||||
return kingCreature;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user