Jump to content

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
https://wrobot.eu/forums/topic/523-target-buff/
Share on other sites

  • 3 weeks later...

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