if (getLevels() < 1 || primary == null || primary == EntityEffectType.NONE) {
return;
}
for (Player player : pos.getWorld().getNearbyPlayers(pos, (int) getEffectRange())) {
Effects effects = player.add(Effects.class);
effects.add(new EntityEffect(primary, getPrimaryAmplifier(), getEffectDuration()));
if (secondary != null && secondary != EntityEffectType.NONE && getLevels() == 4 && primary != secondary) {
effects.add(new EntityEffect(secondary, getEffectDuration()));
}
}
}