浏览代码

BETA: More stuff for [5701]
* Added one more check to skillTime, in order to avoid "broken casting animations" on physical skills, like: Shield Deflect Magic, Wild Shot, and few others.

Reported by: enki
Tested by: enki

MELERIX 12 年之前
父节点
当前提交
7eb4244cad
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Character.java

+ 7 - 2
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Character.java

@@ -1811,11 +1811,16 @@ public abstract class L2Character extends L2Object implements ISkillsHolder
 		}
 		
 		// Avoid broken Casting Animation.
-		// Client can't handle less than 550ms Casting Animation in skills with more than 550ms base.
-		if (((skill.getHitTime() + skill.getCoolTime()) > 550) && (skillTime < 550))
+		// Client can't handle less than 550ms Casting Animation in Magic Skills with more than 550ms base.
+		if (skill.isMagic() && ((skill.getHitTime() + skill.getCoolTime()) > 550) && (skillTime < 550))
 		{
 			skillTime = 550;
 		}
+		// Client can't handle less than 500ms Casting Animation in Physical Skills with 500ms base or more.
+		else if (!skill.isStatic() && ((skill.getHitTime() + skill.getCoolTime()) >= 500) && (skillTime < 500))
+		{
+			skillTime = 500;
+		}
 		
 		// queue herbs and potions
 		if (isCastingSimultaneouslyNow() && simultaneously)