Merge branch 'master' of ssh://dev.mineplex.com:7999/min/Mineplex
This commit is contained in:
commit
e60f52ff9c
@ -68,7 +68,7 @@ public class Snake
|
||||
//Set Block
|
||||
MapUtil.QuickChangeBlockAt(_path.get(_index), 35, GetColor());
|
||||
|
||||
int back = _index - 9;
|
||||
int back = _index - 10;
|
||||
if (back < 0)
|
||||
back += _path.size();
|
||||
|
||||
@ -83,7 +83,7 @@ public class Snake
|
||||
//Set Block
|
||||
MapUtil.QuickChangeBlockAt(_path.get(newIndex), 35, GetColor());
|
||||
|
||||
back = newIndex - 9;
|
||||
back = newIndex - 10;
|
||||
if (back < 0)
|
||||
back += _path.size();
|
||||
|
||||
|
@ -47,8 +47,8 @@ public class SnowmanBoss
|
||||
_minions.add(new SnowmanMinion(_spawn.getWorld().spawn(_spawn, Snowman.class)));
|
||||
|
||||
_heart = _spawn.getWorld().spawn(_spawn, IronGolem.class);
|
||||
_heart.setMaxHealth(150);
|
||||
_heart.setHealth(150);
|
||||
_heart.setMaxHealth(250);
|
||||
_heart.setHealth(250);
|
||||
UtilEnt.Vegetate(_heart);
|
||||
|
||||
Host.CreatureAllowOverride = false;
|
||||
@ -256,6 +256,11 @@ public class SnowmanBoss
|
||||
if (_heart == null)
|
||||
return;
|
||||
|
||||
if (event.GetDamageeEntity().equals(_heart))
|
||||
{
|
||||
event.SetKnockback(false);
|
||||
}
|
||||
|
||||
if (event.GetCause() != DamageCause.PROJECTILE)
|
||||
return;
|
||||
|
||||
|
@ -181,7 +181,7 @@ public class Part3 extends Part
|
||||
if (!(event.GetDamageeEntity() instanceof Snowman))
|
||||
return;
|
||||
|
||||
if (_boss == null || event.GetDamageeEntity().getPassenger() != null)
|
||||
if (_boss == null || event.GetDamageeEntity().getPassenger() == null)
|
||||
{
|
||||
event.SetCancelled("Snowman Wave Cancel");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user