Package net.sf.l2j.gameserver.model.actor.instance.L2PcInstance

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.SkillDat


     * 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 (this instanceof L2PcInstance)
    {
      L2PcInstance currPlayer = (L2PcInstance) this;
      SkillDat queuedSkill = currPlayer.getQueuedSkill();
     
      currPlayer.setCurrentSkill(null, false, false);
     
      if (queuedSkill != null)
      {
        currPlayer.setQueuedSkill(null, false, false);
       
        // DON'T USE : Recursive call to useMagic() method
        // currPlayer.useMagic(queuedSkill.getSkill(), queuedSkill.isCtrlPressed(), queuedSkill.isShiftPressed());
        ThreadPoolManager.getInstance().executeTask(new QueuedMagicUseTask(currPlayer, queuedSkill.getSkill(), queuedSkill.isCtrlPressed(), queuedSkill.isShiftPressed()));
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.SkillDat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.