|
|
|
@ -74,6 +74,7 @@ public class EliteMonster { |
|
|
|
|
BossBar bar = null; |
|
|
|
|
|
|
|
|
|
List<Player> targetlist = new ArrayList<Player>(); |
|
|
|
|
List<Player> participantlist = new ArrayList<Player>(); |
|
|
|
|
//Contains all functionality specific to Elite Monsters.
|
|
|
|
|
//These are checked every 5 ticks, so have very high control over the monster itself.
|
|
|
|
|
EliteMonster(Monster m) { |
|
|
|
@ -277,6 +278,9 @@ public class EliteMonster { |
|
|
|
|
if (!targetlist.contains(damager) && (damager instanceof Player)) { |
|
|
|
|
targetlist.add((Player)damager); |
|
|
|
|
} |
|
|
|
|
if (!participantlist.contains(damager) && (damager instanceof Player)) { |
|
|
|
|
participantlist.add((Player)damager); |
|
|
|
|
} |
|
|
|
|
if (damager instanceof Player) { |
|
|
|
|
Player p = (Player)damager; |
|
|
|
|
p.addPotionEffect(new PotionEffect(PotionEffectType.WEAKNESS,20*2,9),true); |
|
|
|
@ -494,6 +498,10 @@ public class EliteMonster { |
|
|
|
|
return targetlist; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public List<Player> getParticipantList() { |
|
|
|
|
return participantlist; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void randomlyTeleport() { |
|
|
|
|
Location l = getNearbyFreeLocation(m.getLocation(),24); |
|
|
|
|
m.teleport(l); |
|
|
|
|