I was thinking something like this.
Index: java/org/l2jmobius/gameserver/model/actor/Creature.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Creature.java (revision 7754)
+++ java/org/l2jmobius/gameserver/model/actor/Creature.java (working copy)
@@ -5063,8 +5063,10 @@
// cancels the skill hit scheduled task
enableAllSkills(); // re-enables the skills
- if (this instanceof PlayerInstance)
+ if (isPlayer())
{
+ getActingPlayer().setCurrentSkill(null, false, false);
+ getActingPlayer().setQueuedSkill(null, false, false);
getAI().notifyEvent(CtrlEvent.EVT_FINISH_CASTING); // setting back previous intention
}
On the private version moving is not possible while casting.
So someone must verify this on free.