Some balance changes

This commit is contained in:
Vincent Lee committed 2016-04-27 19:26:56 -05:00
1 parent fca4e2bfa8
commit dc35d395cf
5 files changed
+37 -6

No files matched your search

@@ -68,11 +68,14 @@ public class EntityFallingStar extends EntityThrowableCopy {
@Override
protected void onImpact(RayTraceResult pos) {
if (worldObj.isRemote)
return;
EntityLivingBase thrower = getThrower();
if(pos.entityHit != null && thrower != null && pos.entityHit != thrower && !pos.entityHit.isDead) {
if(thrower instanceof EntityPlayer)
pos.entityHit.attackEntityFrom(DamageSource.causePlayerDamage((EntityPlayer) thrower), 10);
else pos.entityHit.attackEntityFrom(DamageSource.generic, 10);
pos.entityHit.attackEntityFrom(DamageSource.causePlayerDamage((EntityPlayer) thrower), Math.random() < 0.25 ? 10 : 5);
else pos.entityHit.attackEntityFrom(DamageSource.generic, Math.random() < 0.25 ? 10 : 5);
}
if (pos.getBlockPos() != null) {