Prevent GG from being shoved while it's still spawning

This commit is contained in:
Vincent Lee committed 2016-06-18 18:42:27 -05:00
1 parent e338735814
commit 3c9388702c
1 file changed
+5
@@ -776,6 +776,11 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBoss {
this.bossInfo.removePlayer(player);
}
@Override
public boolean canBePushed() {
return super.canBePushed() && getInvulTime() == 0;
}
private void spawnMissile() {
EntityMagicMissile missile = new EntityMagicMissile(this, true);
missile.setPosition(posX + (Math.random() - 0.5 * 0.1), posY + 2.4 + (Math.random() - 0.5 * 0.1), posZ + (Math.random() - 0.5 * 0.1));