瀏覽代碼

BETA: Adding missing check for passive skill's conditions.

Reported by: thorl2, Gries, UnAfraid, Adry_85
Zoey76 11 年之前
父節點
當前提交
7cc8c84221
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/CharEffectList.java

+ 6 - 0
L2J_Server_BETA/java/com/l2jserver/gameserver/model/CharEffectList.java

@@ -1395,6 +1395,12 @@ public final class CharEffectList
 				_log.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
 			}
 			
+			// Check for passive skill conditions.
+			if (!skill.checkCondition(info.getEffector(), info.getEffected(), false))
+			{
+				return;
+			}
+			
 			// Puts the effects in the list.
 			final BuffInfo infoToRemove = getPassives().put(skill.getId(), info);
 			if (infoToRemove != null)