All pastes #752999 Raw Edit

Something

public text v1 · immutable
#752999 ·published 2007-10-28 21:47 UTC
rendered paste body
Index: C:/Documents and Settings/Administrateur/workspace/L2J-EnCours/java/net/sf/l2j/gameserver/handler/skillhandlers/Pdam.java
===================================================================
--- C:/Documents and Settings/Administrateur/workspace/L2J-EnCours/java/net/sf/l2j/gameserver/handler/skillhandlers/Pdam.java	(revision 1208)
+++ C:/Documents and Settings/Administrateur/workspace/L2J-EnCours/java/net/sf/l2j/gameserver/handler/skillhandlers/Pdam.java	(working copy)
@@ -57,7 +57,7 @@
     /* (non-Javadoc)
      * @see net.sf.l2j.gameserver.handler.IItemHandler#useItem(net.sf.l2j.gameserver.model.L2PcInstance, net.sf.l2j.gameserver.model.L2ItemInstance)
      */
-    private static final SkillType[] SKILL_IDS = {SkillType.PDAM,
+    private static final SkillType[] SKILL_IDS = {SkillType.PDAM,SkillType.DEATHLINK_PHYSICAL
     /* SkillType.CHARGEDAM */
     };
 
@@ -100,6 +100,8 @@
             if (!crit && (skill.getCondition() & L2Skill.COND_CRIT) != 0) damage = 0;
             else damage = (int) f.calcPhysDam(activeChar, target, skill, shld, false, dual, soul);
             if (crit) damage *= 2; // PDAM Critical damage always 2x and not affected by buffs
+            if(skill.getSkillType() == SkillType.DEATHLINK_PHYSICAL)
+            	damage *= (1.7 - activeChar.getCurrentHp() / activeChar.getMaxHp());
 
             if (damage > 5000 && activeChar instanceof L2PcInstance)
             {