Nik 13 rokov pred
rodič
commit
26470757d5

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

@@ -386,7 +386,8 @@ public abstract class L2Character extends L2Object
 			// The skills list can be affected by spell effects so it's necessary to make a copy
 			// to avoid that a spell affecting a L2NPCInstance, affects others L2NPCInstance of the same type too.
 			_skills = new L2TIntObjectHashMap<L2Skill>();
-			_skills.putAll(((L2NpcTemplate) template).getSkills());
+			if (((L2NpcTemplate) template).getSkills() != null)
+				_skills.putAll(((L2NpcTemplate) template).getSkills());
 			if (_skills != null)
 			{
 				for (L2Skill skill : getAllSkills())