浏览代码

BETA: Fixing critical damage for gladiator/tyrant skills.
Reported by: oscard
Tested by: oscard

Adry_85 12 年之前
父节点
当前提交
d419b80210
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/EnergyAttack.java

+ 5 - 1
L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/EnergyAttack.java

@@ -75,7 +75,7 @@ public class EnergyAttack extends L2Effect
 			crit = Formulas.calcCrit(getSkill().getBaseCritRate() * 10 * BaseStats.STR.calcBonus(activeChar), true, target);
 		}
 		// damage calculation
-		double damage = Formulas.calcPhysDam(activeChar, target, getSkill(), shld, crit, ss);
+		double damage = Formulas.calcPhysDam(activeChar, target, getSkill(), shld, false, ss);
 		
 		double modifier = 0;
 		if (activeChar.isPlayer())
@@ -83,6 +83,10 @@ public class EnergyAttack extends L2Effect
 			// Charges Formula (each charge increase +25%)
 			modifier = ((activeChar.getActingPlayer().getCharges() * 0.25) + 1);
 		}
+		if (crit)
+		{
+			damage *= 2;
+		}
 		
 		if (damage > 0)
 		{