More Elite Monster fixes.

This commit is contained in:
sigonasr2 2016-08-12 23:14:37 -05:00
parent 39e7e2c53f
commit d9e1e43ef1
2 changed files with 6 additions and 2 deletions

Binary file not shown.

View File

@ -149,7 +149,7 @@ public class EliteMonster {
}
private void retargetInAir() {
if (Math.random()<=0.2) {
if (Math.random()<=0.04) {
Player p = ChooseRandomTarget();
//p.addPotionEffect(new PotionEffect(PotionEffectType.LEVITATION,20*5,-31));
p.addPotionEffect(new PotionEffect(PotionEffectType.JUMP,20*5,-1));
@ -256,7 +256,11 @@ public class EliteMonster {
m.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE,Integer.MAX_VALUE,8),true);
m.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE,Integer.MAX_VALUE,8),true);
//m.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION,Integer.MAX_VALUE,2),true);
ItemStack helm = new ItemStack(Material.GOLD_HELMET);
ItemStack helm = new ItemStack(Material.GOLD_SWORD);
m.getEquipment().setItemInMainHand(helm);
m.getEquipment().setItemInMainHand(Loot.GenerateMegaPiece(helm.getType(), true, true, 1));
m.getEquipment().setItemInMainHandDropChance(1.0f);
helm = new ItemStack(Material.GOLD_HELMET);
m.getEquipment().setHelmet(helm);
m.getEquipment().setHelmet(Loot.GenerateMegaPiece(helm.getType(), true, true, 1));
m.getEquipment().setHelmetDropChance(1.0f);