浏览代码

BETA: Fixing minor typo in [6335]

Rumen Nikiforov 11 年之前
父节点
当前提交
89a9634054
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Character.java

+ 8 - 4
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Character.java

@@ -5751,6 +5751,13 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
 			return;
 		}
 		
+		// Cleanup
+		_skillCast = null;
+		_castInterruptTime = 0;
+		
+		// Stop casting
+		setIsCastingNow(false);
+		
 		final L2Skill skill = mut.getSkill();
 		final L2Object target = mut.getTargets().length > 0 ? mut.getTargets()[0] : null;
 		
@@ -5784,12 +5791,9 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
 		// Notify the AI of the L2Character with EVT_FINISH_CASTING
 		getAI().notifyEvent(CtrlEvent.EVT_FINISH_CASTING);
 		
+		// Notify DP Scripts
 		notifyQuestEventSkillFinished(skill, target);
 		
-		_skillCast = null;
-		setIsCastingNow(false);
-		_castInterruptTime = 0;
-		
 		// If character is a player, then wipe their current cast state and check if a skill is queued.
 		// If there is a queued skill, launch it and wipe the queue.
 		if (isPlayer())