Quellcode durchsuchen

BETA: Only etcitem_type "rune" can give passive skills when held in your inventory, not all etcitems.

MELERIX vor 13 Jahren
Ursprung
Commit
b0584aae3f

+ 1 - 1
L2J_Server_BETA/dist/doc/L2J_Server_README.txt

@@ -286,7 +286,7 @@ http://www.l2jserver.com/forum/memberlist.php?mode=leaders
 Have fun playing L2J ;)
 Dev Team
 
-    L2J Server, Copyright (C) 2006-2010 
+    L2J Server, Copyright (C) 2004-2012 
     L2J Server comes with ABSOLUTELY NO WARRANTY.
     This is free software, and you are welcome to redistribute it
     under certain conditions.

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/items/instance/L2ItemInstance.java

@@ -2026,7 +2026,7 @@ public final class L2ItemInstance extends L2Object
 	
 	public boolean hasPassiveSkills()
 	{
-		return isEtcItem() && getLocation() == ItemLocation.INVENTORY && getOwnerId() > 0 && getItem().getSkills() != null;
+		return getItemType() == L2EtcItemType.RUNE && getLocation() == ItemLocation.INVENTORY && getOwnerId() > 0 && getItem().getSkills() != null;
 	}
 	
 	public void giveSkillsToOwner()