소스 검색

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)