Browse Source

BETA: Core part for [DP10303].

Adry_85 11 years ago
parent
commit
ee19526400

+ 5 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Character.java

@@ -1838,10 +1838,14 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
 		{
 			reuseDelay = (int) (skill.getReuseDelay() * calcStat(Stats.MAGIC_REUSE_RATE, 1, null, null));
 		}
-		else
+		else if (skill.isPhysical())
 		{
 			reuseDelay = (int) (skill.getReuseDelay() * calcStat(Stats.P_REUSE, 1, null, null));
 		}
+		else
+		{
+			reuseDelay = (int) (skill.getReuseDelay() * calcStat(Stats.DANCE_REUSE, 1, null, null));
+		}
 		
 		boolean skillMastery = Formulas.calcSkillMastery(this, skill);
 		

+ 1 - 0
L2J_Server_BETA/java/com/l2jserver/gameserver/model/stats/Stats.java

@@ -52,6 +52,7 @@ public enum Stats
 	ATK_REUSE("atkReuse"), // Bows Hits Reuse Rate
 	P_REUSE("pReuse"), // Physical Skill Reuse Rate
 	MAGIC_REUSE_RATE("mReuse"), // Magic Skill Reuse Rate
+	DANCE_REUSE("dReuse"), // Dance Skill Reuse Rate
 	SHIELD_DEFENCE("sDef"),
 	CRITICAL_DAMAGE("cAtk"),
 	CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA