Truman422
Member
- Joined
- Jan 10, 2011
- Messages
- 198
- Reaction score
- 14
Is there a way to call a spell based soley on the fact that another spell is off its usage cooldown?
For example, I want to use berserker rage only if my raging blow isn't cooling down. Spellmanager.CanCast checks too much stuff almost because it just won't use the ability at all if I am not enraged. I think I explained that right. Maybe the attempt at code would make more sense.
I fail at coding, but this is the best idea of how to make such a thing work. Is there a different call for the spellmanager that I can use to make sure that the raging blow wasn't used and on its 6 second cooldown?
The main issue is that since Raging Blow is on proc of enrage, the cancast checks it that I can't cast it anyways, so just skips over it. Confusing, but I think that makes sense.
For example, I want to use berserker rage only if my raging blow isn't cooling down. Spellmanager.CanCast checks too much stuff almost because it just won't use the ability at all if I am not enraged. I think I explained that right. Maybe the attempt at code would make more sense.
Code:
if (!Me.ActiveAuras.ContainsKey("Enrage") && !Me.ActiveAuras.ContainsKey("Berserker Rage") && SpellManager.CanCast("Berserker Rage"))
{
if (SpellManager.CanCast("Raging Blow"))
{
SpellManager.Cast("Berserker Rage");
slog("Berserker Rage");
}
}
I fail at coding, but this is the best idea of how to make such a thing work. Is there a different call for the spellmanager that I can use to make sure that the raging blow wasn't used and on its 6 second cooldown?
The main issue is that since Raging Blow is on proc of enrage, the cancast checks it that I can't cast it anyways, so just skips over it. Confusing, but I think that makes sense.
Last edited: