Parcourir la source

Update L2Attackable.java

zarie il y a 10 ans
Parent
commit
7349c21e25

+ 12 - 5
L2J_Server/java/com/l2jserver/gameserver/model/actor/L2Attackable.java

@@ -990,11 +990,18 @@ public class L2Attackable extends L2Npc
 				// Broadcast message if RaidBoss was defeated
 				if (isRaid() && !isRaidMinion())
 				{
-					final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_DIED_DROPPED_S3_S2);
-					sm.addCharName(this);
-					sm.addItemName(item);
-					sm.addLong(drop.getCount());
-					broadcastPacket(sm);
+					if (drop.getCount() > 0)
+					{
+						final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_DIED_DROPPED_S3_S2);
+						sm.addCharName(this);
+						sm.addItemName(item);
+						sm.addLong(drop.getCount());
+						broadcastPacket(sm);
+					}
+					else
+					{
+						// nothing, for AutoLoot
+					}
 				}
 			}
 		}