Jump to content

Target Buff


Recommended Posts

Target Buff is only checking if the debuff is on the target, not who put the debuff on the target.

 

In raid, with 3 feral druids, he never put rip, rake if another druid provide the debuff.

 

So, you need a check from who is the debuff.

public bool debuffExists(int Debuff, WoWUnit onTarget)
        {
            if (onTarget != null)
            {
                WoWAura aura = onTarget.GetAllAuras().FirstOrDefault(a => a.SpellId == Debuff && a.CreatorGuid == Me.Guid);
                if (aura != null)
                {
                    return true;
                }
            }
            return false;
        }
Link to comment
Share on other sites

  • 3 weeks later...

I have added this, wait next update ( wManager.Wow.Helpers.BuffManager.AuraStack(uint baseAddress, List<UInt32> buffId, out ulong owner) or in fightclass condition)

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...