Diva charm no longer brainwashes boss mobs. Closes #2921

This commit is contained in:
Vincent Lee committed 2019-09-17 21:03:04 -05:00
1 parent fecf1b5c06
commit dca3c28cca
1 file changed
+5 -1
@@ -56,7 +56,11 @@ public class ItemDivaCharm extends ItemBauble implements IManaUsingItem, IBauble
@SubscribeEvent
public void onEntityDamaged(LivingHurtEvent event) {
if (event.getSource().getImmediateSource() instanceof EntityPlayer && event.getEntityLiving() instanceof EntityLiving && !event.getEntityLiving().world.isRemote && Math.random() < 0.6F) {
if (event.getSource().getImmediateSource() instanceof EntityPlayer
&& event.getEntityLiving() instanceof EntityLiving
&& !event.getEntityLiving().world.isRemote
&& event.getEntityLiving().isNonBoss()
&& Math.random() < 0.6F) {
Runnable lambda = () -> {
EntityLiving target = (EntityLiving) event.getEntityLiving();
EntityPlayer player = (EntityPlayer) event.getSource().getImmediateSource();