Jump to content
  • rogue monsters


    mpfans
    • Status: Unconfirmed
      Main Category: Database
      Sub-Category: Creature
      Version: 21.5.x Milestone: 20 Priority: New
      Implemented Version: 0.20

    rogue monsters

    When you are faced with all the rogue monsters,not the monster on the back. it will use this spell 'Backstab'


    User Feedback

    Recommended Comments

    TC fixed this by adding the attribute SPELL_ATTR0_CU_REQ_CASTER_BEHIND_TARGET manually to all spells with a certain ID. Which is a custom attribute they added.
    [url]https://github.com/TrinityCore/TrinityCore/commit/d2e782a13b274ba0a0001c11ee183c240a49975f[/url]


    We could simply add SPELL_ATTR_EX2_UNK20 and SPELL_ATTR_EX_UNK9 as they are already checked for in the code in Spell.cpp:
    // Must be behind the target.
    if (m_spellInfo->AttributesEx2 == SPELL_ATTR_EX2_UNK20 && m_spellInfo->HasAttribute(SPELL_ATTR_EX_UNK9) && target->HasInArc(M_PI_F, m_caster))
    {
    // Exclusion for Pounce: Facing Limitation was removed in 2.0.1, but it still uses the same, old Ex-Flags
    //if (!m_spellInfo->IsFitToFamily(SPELLFAMILY_DRUID, UI64LIT(0x0000000000020000)))
    //{
    SendInterrupted(2);
    return SPELL_FAILED_NOT_BEHIND;
    //}
    }


    Thoughts?

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use