Jump to content

Use of dragon roar only when enraged


Darkscarletz

Recommended Posts

Hey,

I have been playing around with Dragon Roar and I can't for the life of me get it to cast only if Enrage is up. It will always cast automatically when available no matter what conditions I set It's like it doesn't pick the buff on me up. Could I grab some assistance in this space. C code appreciated.

Thanks.

Link to comment
Share on other sites

55 minutes ago, Darkscarletz said:

Hey,

I have been playing around with Dragon Roar and I can't for the life of me get it to cast only if Enrage is up. It will always cast automatically when available no matter what conditions I set It's like it doesn't pick the buff on me up. Could I grab some assistance in this space. C code appreciated.

Thanks.

I can't provide C but i can give you an example in C#
 

            // Create spell instance
            Spell dragonRoar = new Spell("Dragon Roar");

            // Validate
            if (ObjectManager.Me.HaveBuff(new Spell("Enrage").Ids) && dragonRoar.IsSpellUsable)
            {
                // Use spell
                dragonRoar.Launch();
            }



The spell will be launched if you don't have the spell at your self and dragon roar is ready to use.
ps: you need to check the spell names if they are correct

 

Hope that helpes.

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