Browse Source

BETA/STABLE: Changed abnormal --> abnormalVisualEffect, by UnAfraid.

MELERIX 13 năm trước cách đây
mục cha
commit
99642e1e6b

+ 42 - 9
L2J_Server_BETA/java/com/l2jserver/gameserver/model/L2Effect.java

@@ -686,17 +686,50 @@ public abstract class L2Effect implements IChanceSkillTrigger
 		return false;
 	}
 	
-	public void decreaseForce() { }
-	public void increaseEffect() { }
-	public int getForceEffect() { return 0; }
-	public boolean isBuffEffect() { return false; }
-	public boolean isDebuffEffect() { return false; }
+	public void decreaseForce()
+	{
+	}
+	
+	public void increaseEffect()
+	{
+	}
+	
+	public int getForceEffect()
+	{
+		return 0;
+	}
+	
+	public boolean isBuffEffect()
+	{
+		return false;
+	}
+	
+	public boolean isDebuffEffect()
+	{
+		return false;
+	}
+	
 	@Override
-	public boolean triggersChanceSkill() { return false; }	
+	public boolean triggersChanceSkill()
+	{
+		return false;
+	}
+	
 	@Override
-	public int getTriggeredChanceId() { return 0; }
+	public int getTriggeredChanceId()
+	{
+		return 0;
+	}
+	
 	@Override
-	public int getTriggeredChanceLevel() { return 0; }
+	public int getTriggeredChanceLevel()
+	{
+		return 0;
+	}
+	
 	@Override
-	public ChanceCondition getTriggeredChanceCondition() { return null; }
+	public ChanceCondition getTriggeredChanceCondition()
+	{
+		return null;
+	}
 }

+ 5 - 5
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/DocumentBase.java

@@ -298,11 +298,11 @@ abstract class DocumentBase
 		}
 		Lambda lambda = getLambda(n, template);
 		Condition applayCond = parseCondition(n.getFirstChild(), template);
-		AbnormalEffect abnormal = AbnormalEffect.NULL;
-		if (attrs.getNamedItem("abnormal") != null)
+		AbnormalEffect abnormalVisualEffect = AbnormalEffect.NULL;
+		if (attrs.getNamedItem("abnormalVisualEffect") != null)
 		{
-			String abn = attrs.getNamedItem("abnormal").getNodeValue();
-			abnormal = AbnormalEffect.getByName(abn);
+			String abn = attrs.getNamedItem("abnormalVisualEffect").getNodeValue();
+			abnormalVisualEffect = AbnormalEffect.getByName(abn);
 		}
 		AbnormalEffect[] special = null;
 		if (attrs.getNamedItem("special") != null)
@@ -391,7 +391,7 @@ abstract class DocumentBase
 			throw new NoSuchElementException("Invalid chance condition: " + chanceCond + " "
 					+ activationChance);
 		
-		lt = new EffectTemplate(attachCond, applayCond, name, lambda, count, abnormalTime, abnormal, special, event, abnormalType, abnormalLvl, icon, effectPower, type, trigId, trigLvl, chance, passiveEffect);
+		lt = new EffectTemplate(attachCond, applayCond, name, lambda, count, abnormalTime, abnormalVisualEffect, special, event, abnormalType, abnormalLvl, icon, effectPower, type, trigId, trigLvl, chance, passiveEffect);
 		parseTemplate(n, lt);
 		if (template instanceof L2Item)
 			((L2Item) template).attach(lt);