Entities killed with the Cloud Staff's projectiles now drop experience.
This commit is contained in:
parent
ba375e6a74
commit
e4061e23dd
|
@ -147,6 +147,8 @@ public class EntityMiniCloud extends EntityFlying implements IEntityAdditionalSp
|
|||
EntityCrystal crystal = new EntityCrystal(this.worldObj, var1, var3, var5, EnumCrystalType.CLOUD);
|
||||
Vec3 var9 = this.getLookVec();
|
||||
|
||||
crystal.shootingEntity = this.owner;
|
||||
|
||||
if (var9 != null) {
|
||||
crystal.smotionX = var9.xCoord * 1.5D;
|
||||
crystal.smotionY = var9.yCoord * 1.5D;
|
||||
|
|
|
@ -189,10 +189,15 @@ public class EntityCrystal extends EntityFlying implements IEntityAdditionalSpaw
|
|||
((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Potion.weakness.id, 10));
|
||||
}
|
||||
} else if (this.type == EnumCrystalType.CLOUD && !(entity instanceof IAetherBoss)) {
|
||||
this.explode();
|
||||
this.expire();
|
||||
this.setDead();
|
||||
entity.attackEntityFrom(DamageSource.causeMobDamage(this), 5.0F);
|
||||
flag = entity.attackEntityFrom(new EntityDamageSourceIndirect("icey_ball", this, this.shootingEntity).setProjectile(), 5);
|
||||
|
||||
if (flag)
|
||||
{
|
||||
this.explode();
|
||||
this.expire();
|
||||
this.setDead();
|
||||
((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Potion.weakness.id, 10));
|
||||
}
|
||||
} else if (this.type == EnumCrystalType.THUNDER && entity == this.getAttackTarget()) {
|
||||
flag = entity.attackEntityFrom(new EntityDamageSourceIndirect("lightning_ball", this, this.shootingEntity).setProjectile(), 5);
|
||||
|
||||
|
|
Loading…
Reference in a new issue