Procházet zdrojové kódy

BETA: Unhardcoded '''isHealingPotionSkill''' method.
Reviewed by: St3eT, Zoey76

Adry_85 před 11 roky
rodič
revize
aa7e9f9082

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/holders/ItemChanceHolder.java

@@ -39,7 +39,7 @@ public class ItemChanceHolder extends ItemHolder
 	}
 	
 	/**
-	 * Gets the cahnce.
+	 * Gets the chance.
 	 * @return the drop chance of the item contained in this object
 	 */
 	public double getChance()

+ 1 - 13
L2J_Server_BETA/java/com/l2jserver/gameserver/model/skills/Skill.java

@@ -928,19 +928,7 @@ public final class Skill implements IChanceSkillTrigger, IIdentifiable
 	 */
 	public boolean isHealingPotionSkill()
 	{
-		switch (getId())
-		{
-			case 2031: // Lesser Healing Potion
-			case 2032: // Healing Potion
-			case 2037: // Greater Healing Potion
-			case 2863: // Highest Power Healing Potion
-			case 26025: // Powerful Healing Potion
-			case 26026: // High-grade Healing Potion
-			{
-				return true;
-			}
-		}
-		return false;
+		return getAbnormalType() == AbnormalType.HP_RECOVER;
 	}
 	
 	public int getChargeConsume()