A Project for Chronicle 4 based on L2JServer.


    Fix potions, attacking with skills.

    Share

    raulmendes

    Posts : 1
    Join date : 2014-06-02

    Fix potions, attacking with skills.

    Post  raulmendes on 11th June 2014, 18:46

    Code:
    Index: Game/java/com/src/gameserver/model/actor/L2Character.java
    ===================================================================
    --- Game/java/com/src/gameserver/model/actor/L2Character.java (revision 583)
    +++ Game/java/com/src/gameserver/model/actor/L2Character.java (working copy)
    @@ -5604,4 +5604,8 @@
    L2PcInstance currPlayer = (L2PcInstance)this;
    SkillDat queuedSkill = currPlayer.getQueuedSkill();
    +
    + // Rescuing old skill cast task if exist
    + if (skill.isPotion())
    + queuedSkill = currPlayer.getCurrentSkill();

    currPlayer.setCurrentSkill(null, false, false);

    is a fix for a small bug that gives the potion to use while the char casts a skill ..

    type, when you attack a mob or player, and click the potion while the char're still sending the skill ...

    could add? Thanks.
    avatar
    DnR
    Admin
    Admin

    Posts : 1023
    Join date : 2012-12-03

    Re: Fix potions, attacking with skills.

    Post  DnR on 12th June 2014, 19:40

    Not actually a bug. Majority asked for potions being used while casting a skill.

    kostheborracha

    Posts : 2
    Join date : 2014-05-30

    Re: Fix potions, attacking with skills.

    Post  kostheborracha on 13th June 2014, 03:51

    DnR wrote:Not actually a bug. Majority asked for potions being used while casting a skill.

    but like, you can not put this mob for me there? Put the mod and let those who want to enable.

    Sponsored content

    Re: Fix potions, attacking with skills.

    Post  Sponsored content


      Current date/time is 20th September 2017, 16:03