Backport fix.
This commit is contained in:
parent
7f945e9ed2
commit
06da3cfac3
|
@ -210,27 +210,29 @@ public class EntityValkyrieQueen extends EntityBossMob implements IAetherBoss {
|
|||
this.motionY *= .5f;
|
||||
this.moveStrafing = this.moveForward = 0;
|
||||
} else {
|
||||
if (this.getEntityToAttack() instanceof EntityPlayer) {
|
||||
if (this.getEntityToAttack().posY > this.posY) {
|
||||
timeUntilTeleportToPlayer++;
|
||||
if (this.getEntityToAttack() != null) {
|
||||
if (this.getEntityToAttack() instanceof EntityPlayer) {
|
||||
if (this.getEntityToAttack().posY > this.posY) {
|
||||
timeUntilTeleportToPlayer++;
|
||||
|
||||
if (timeUntilTeleportToPlayer >= 75 && !this.worldObj.isRemote) {
|
||||
this.teleportToPlayer();
|
||||
}
|
||||
} else {
|
||||
timeUntilTeleportToPlayer = 0;
|
||||
}
|
||||
|
||||
if (this.timeUntilTeleport++ >= 450) {
|
||||
if (this.onGround && this.rand.nextInt(5) == 0) {
|
||||
this.makeHomeShot(1, (EntityPlayer) this.getEntityToAttack());
|
||||
if (timeUntilTeleportToPlayer >= 75 && !this.worldObj.isRemote) {
|
||||
this.teleportToPlayer();
|
||||
}
|
||||
} else {
|
||||
this.teleport(this.getEntityToAttack().posX, this.getEntityToAttack().posY, this.getEntityToAttack().posZ, 4);
|
||||
timeUntilTeleportToPlayer = 0;
|
||||
}
|
||||
|
||||
if (this.timeUntilTeleport++ >= 450) {
|
||||
if (this.onGround && this.rand.nextInt(5) == 0) {
|
||||
this.makeHomeShot(1, (EntityPlayer) this.getEntityToAttack());
|
||||
} else {
|
||||
this.teleport(this.getEntityToAttack().posX, this.getEntityToAttack().posY, this.getEntityToAttack().posZ, 4);
|
||||
}
|
||||
} else if (this.timeUntilTeleport < 446 && (this.posY <= 0D || this.posY <= (this.safeY - 16D))) {
|
||||
this.timeUntilTeleport = 446;
|
||||
} else if ((this.timeUntilTeleport % 5) == 0 && !canEntityBeSeen(this.getEntityToAttack())) {
|
||||
this.timeUntilTeleport += 100;
|
||||
}
|
||||
} else if (this.timeUntilTeleport < 446 && (this.posY <= 0D || this.posY <= (this.safeY - 16D))) {
|
||||
this.timeUntilTeleport = 446;
|
||||
} else if ((this.timeUntilTeleport % 5) == 0 && !canEntityBeSeen(this.getEntityToAttack())) {
|
||||
this.timeUntilTeleport += 100;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue