Преглед изворни кода

BETA: '''!AutoLoot''' config should not include herbs. Herbs are now auto looted only if '''!AutoLootHerbs''' is enabled too.

Reviewed by: !UnAfraid, St3eT, Adry_85
Reported by: kornom
Nos пре 11 година
родитељ
комит
36bff4a9d2

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Attackable.java

@@ -1039,7 +1039,7 @@ public class L2Attackable extends L2Npc
 			{
 				L2Item item = ItemTable.getInstance().getTemplate(drop.getId());
 				// Check if the autoLoot mode is active
-				if (isFlying() || (!isRaid() && Config.AUTO_LOOT) || (isRaid() && Config.AUTO_LOOT_RAIDS) || (item.hasExImmediateEffect() && Config.AUTO_LOOT_HERBS))
+				if (isFlying() || (!item.hasExImmediateEffect() && ((!isRaid() && Config.AUTO_LOOT) || (isRaid() && Config.AUTO_LOOT_RAIDS))) || (item.hasExImmediateEffect() && Config.AUTO_LOOT_HERBS))
 				{
 					player.doAutoLoot(this, drop); // Give the item(s) to the L2PcInstance that has killed the L2Attackable
 				}