Try this.
Index: java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java
===================================================================
--- java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java (revision 7754)
+++ java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java (working copy)
@@ -158,6 +158,12 @@
return;
}
+ if (player.isCastingNow())
+ {
+ player.sendMessage("You may not use this item while casting a skill.");
+ return;
+ }
+
// Check if this is a blessed scroll, if it is then shorten the cast time.
final int itemId = item.getItemId();
final SystemMessage sm3 = new SystemMessage(SystemMessageId.USE_S1);
@@ -183,7 +189,6 @@
// Abort combat.
player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
player.abortAttack();
- player.abortCast(true);
player.disableAllSkills();
final Skill skill = SkillTable.getInstance().getSkill(escapeSkill, 1);