Raid Curse on high level players

    Share
    avatar
    Karakan

    Posts : 405
    Join date : 2013-10-04

    Raid Curse on high level players

    Post  Karakan on 6th August 2017, 19:06

    A high level healer (EE/SE) can heal characters outside raid boss range (1500?).
    So Mages just move a bit from Raid and can be healed and recharged without the healer getting any raid curse.

    Never saw this on C4 retail.

    Any suggestion is welcome.

    Regards Smile



    This workaround sadly didn't fix the problem.



    Code:

                   // Check Raidboss attack and
                   // check buffing chars who attack raidboss. Results in mute.
                   L2Character targetsAttackTarget = targetPlayer.getAI().getAttackTarget();
                   L2Character targetsCastTarget = targetPlayer.getAI().getCastTarget();
    +               L2Character targetsTarget = (L2Character) targetPlayer.getTarget();
                   
                   // Check Raidboss attack
                   if ((targetPlayer.isRaid() && (getLevel() > (targetPlayer.getLevel() + 8)))
                      || (!skill.isOffensive()
                         && (targetsAttackTarget != null)
                         && targetsAttackTarget.isRaid()
                         && targetsAttackTarget.getAttackByList().contains(targetPlayer) // has attacked raid
                         && (getLevel() > (targetsAttackTarget.getLevel() + 8)))
                      || (!skill.isOffensive()
                         && (targetsCastTarget != null)
                         && targetsCastTarget.isRaid()
                         && targetsCastTarget.getAttackByList().contains(targetPlayer) // has attacked raid
                         && (getLevel() > (targetsCastTarget.getLevel() + 8))))
    +                  || (!skill.isMagic()
    +                     && (targetsTarget != null)
    +                     && targetsTarget.isRaid()
    +                     && targetsTarget.getAttackByList().contains(targetPlayer) // has attacked raid
    +                     && (getLevel() > (targetsTarget.getLevel() + 8))))



      Current date/time is 16th August 2017, 18:26