Made the Gaia Guardian only remove ambient potion effects. Closes #925

This commit is contained in:
Lizbeth Rika committed 2015-05-12 16:38:50 +01:00
1 parent 1d377b8889
commit a59d13ff06
1 file changed
+1 -1
@@ -408,7 +408,7 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi
List<PotionEffect> remove = new ArrayList();
Collection<PotionEffect> active = player.getActivePotionEffects();
for(PotionEffect effect : active)
if(effect.getDuration() < 200 && !ReflectionHelper.<Boolean, Potion>getPrivateValue(Potion.class, Potion.potionTypes[effect.getPotionID()], LibObfuscation.IS_BAD_EFFECT))
if(effect.getDuration() < 200 && effect.getIsAmbient() && !ReflectionHelper.<Boolean, Potion>getPrivateValue(Potion.class, Potion.potionTypes[effect.getPotionID()], LibObfuscation.IS_BAD_EFFECT))
remove.add(effect);
active.removeAll(remove);