Allow non-melle player damage to GG (arrows) damage cap still applies. Damage reduction in hard mode now done using armor

This commit is contained in:
Vincent Lee committed 2016-06-18 18:36:15 -05:00
1 parent d34fc5a3e1
commit e338735814
2 files changed
+11 -10

No files matched your search

@@ -62,7 +62,7 @@ public class EntityMagicLandmine extends Entity {
if(!worldObj.isRemote) {
List<EntityPlayer> players = worldObj.getEntitiesWithinAABB(EntityPlayer.class, new AxisAlignedBB(posX - range, posY - range, posZ - range, posX + range, posY + range, posZ + range));
for(EntityPlayer player : players) {
player.attackEntityFrom(summoner == null ? DamageSource.generic : DamageSource.causeIndirectMagicDamage(this, summoner), 10);
player.attackEntityFrom(DamageSource.causeIndirectMagicDamage(this, summoner), 10);
player.addPotionEffect(new PotionEffect(MobEffects.BLINDNESS, 25, 0));
PotionEffect wither = new PotionEffect(MobEffects.WITHER, 70, 3);
wither.getCurativeItems().clear();