A Project for Chronicle 4 based on L2JServer.


    Bug fix the absence of delay between summon/pet attack!

    Share

    Flopix

    Posts : 17
    Join date : 2014-02-28

    Bug fix the absence of delay between summon/pet attack!

    Post  Flopix on 6th December 2017, 04:57

    How to use:

    Quickly in a cycle, press this combination
    1. Use any summon skill.
    2. Use summon attack.
    3. Goto 1.

    While the skill is being prepared, summon will use phys attack without delay when using this command sequence.


    fix:

    L2Summon.java

    Code:

     public void useMagic(L2Skill skill, boolean forceUse, boolean dontMove)
     ...


     // ************************************* Check skill availability *******************************************

    + // Check if a skill is disabled while attacking
    + if (isSkillDisabled(skill.getId()) && (isAttackingNow() || (skill.getCastRange() < 0)))
    + {
    + if (getOwner() != null)
    + {
    + SystemMessage sm = new SystemMessage(SystemMessage.S1_PREPARED_FOR_REUSE);
    + sm.addSkillName(skill.getId(), skill.getLevel());
    + getOwner().sendPacket(sm);
    + }
    + return;
    + }
     
     // Check if this skill is enabled (ex : reuse time)
     if (isAllSkillsDisabled() && getOwner() != null && (getOwner().getAccessLevel() < Config.GM_PEACEATTACK))
     return;
     
     // ************************************* Check Consumables *******************************************

     ...
    avatar
    DnR
    Admin
    Admin

    Posts : 1050
    Join date : 2012-12-03

    Re: Bug fix the absence of delay between summon/pet attack!

    Post  DnR on 31st December 2017, 18:15

    I noticed a problem when you try to use a disabled skill while pet is attacking.
    This cancels auto-attack. Is it what you were trying to say?
    Just using skill availability check is enough though.

    Fixed in 596.
    Thanks for reporting.

      Current date/time is 25th April 2018, 07:53