if ((this.isFlying() || this.isHovering()) && !this.isModelDead()) {
if (animationCycle < 15) {
animationCycle++;
} else {
animationCycle = 0;
<BUG>}
if (animationCycle > 12 && animationCycle < 15) {</BUG>
for (int i = 0; i < this.getRenderSize(); i++) {
for (int i1 = 0; i1 < 20; i1++) {
double motionX = getRNG().nextGaussian() * 0.07D;

if ((this.isFlying() || this.isHovering()) && !this.isModelDead()) {
if (animationCycle < 15) {
animationCycle++;
} else {
animationCycle = 0;
}
if(animationCycle == 13){
this.worldObj.playSound(this.posX, this.posY, this.posZ, SoundEvents.ENTITY_ENDERDRAGON_FLAP, this.getSoundCategory(), 10.0F, 0.4F + this.rand.nextFloat() * 0.3F, false);
}
if (animationCycle > 12 && animationCycle < 15) {
for (int i = 0; i < this.getRenderSize(); i++) {
for (int i1 = 0; i1 < 20; i1++) {
double motionX = getRNG().nextGaussian() * 0.07D;
