mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
Fix gaia removed potion effects not syncing, made magic landmines deal magic (armor bypassing) damage
This commit is contained in:
2 files changed
+11
-4
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.causeMobDamage(summoner), 10);
|
||||
player.attackEntityFrom(summoner == null ? DamageSource.generic : DamageSource.causeIndirectMagicDamage(this, summoner), 10);
|
||||
player.addPotionEffect(new PotionEffect(MobEffects.BLINDNESS, 25, 0));
|
||||
PotionEffect wither = new PotionEffect(MobEffects.WITHER, 70, 3);
|
||||
wither.getCurativeItems().clear();
|
||||
|
||||
Reference in new issue
Block a user