wownerds
New Member
- Joined
- Feb 15, 2011
- Messages
- 1,385
- Reaction score
- 30
Hey there,
while coding my CC, I came across a somehow strange bug.
The PrioritySelector has a total of about 120 children and looks like this:
The problem I encountered is the following:
If DunatanksSettings.Instance.useSpecc is 0, the CC performs the actions as intended, but if it switches to 1 or 2, it just does nothing.
Any suggestions?
thanks in advance
while coding my CC, I came across a somehow strange bug.
The PrioritySelector has a total of about 120 children and looks like this:
Code:
return new PrioritySelector(
new Decorator(ret => !StyxWoW.Me.Combat || StyxWoW.Me.CurrentTarget == null || StyxWoW.Me.CurrentTarget.Dead || !StyxWoW.Me.CurrentTarget.Attackable || StyxWoW.Me.CurrentTarget.Distance > DunatanksSettings.Instance.AttackDistance || StyxWoW.Me.Mounted,
new ActionIdle()),
new Decorator(ret => Me.HealthPercent <= DunatanksSettings.Instance.furyHealthstonePercent && HaveHealthStone() && HealthStoneNotCooldown(),
new Action(ret => UseHealthStone())),
CreateSpellCheckAndCast("Colossus Smash", ret => DunatanksSettings.Instance.useSpecc == 0 && !Me.CurrentTarget.HasAura("Colossus Smash") && detectAdds().Count == 1),
[...]
CreateSpellCheckAndCast("Heroic Strike", ret => DunatanksSettings.Instance.useSpecc == 1 && DunatanksSettings.Instance.FurySpecc == 0 && Me.CurrentRage > 80 && detectAdds().Count == 1),
[...]
CreateSpellCheckAndCast("Revenge", ret => DunatanksSettings.Instance.useSpecc == 2 && detectAdds().Count > 1 && detectAdds().Count < 6)
);
The problem I encountered is the following:
If DunatanksSettings.Instance.useSpecc is 0, the CC performs the actions as intended, but if it switches to 1 or 2, it just does nothing.
Any suggestions?
thanks in advance