Explorar el Código

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

Reported by: thorl2, Gries, UnAfraid, Adry_85
Zoey76 hace 11 años
padre
commit
7cc8c84221

+ 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)