I Worked on a Druid Feral CC it will be Pubblic soon, it work fine on Pupped and Pve but I have a problem and thought you coult probably help me. The Problem is that in Arena via LazzyRaider he just wont attack :/
He Swift form to cat, he SwiftForms if Rooted, and Savage Roar but just Wont attack :/
And Like i sad in pve and on Pupped, even in Duels where i dont want it it work fine :/
1. Check Feral or Guardian skilled,
2. Composite FeralRotation() => Me.CurrentMap.IsArena, FeralPVP
3. The FeralPvP Start that means he buff Savage Roar but dont attack :/ in Pve, and on Pupped he attack just not in arena ...
I think its because of the Me.CurrentTarget but i dont know how to fix it I tryed NearbyHostilesNeedMyAura as well but nothing change...
coult anyone of you perhapps help me out?
He Swift form to cat, he SwiftForms if Rooted, and Savage Roar but just Wont attack :/
And Like i sad in pve and on Pupped, even in Duels where i dont want it it work fine :/
using System;
using System.Linq;
using Styx;
using CommonBehaviors.Actions;
using Styx.TreeSharp;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.CommonBot;
using Action = Styx.TreeSharp.Action;
using Me.Helpers;
using Me.Managers;
using Me.Settings;
namespace My.Classes
{
public class Druid : Base
{
//So I only have to do this calculation once per tick
//Set during the UpdateList()
//----------------------------------------------------|
protected bool Guardian { get { return Me.Specialization == WoWSpec.DruidGuardian; } }
protected bool Feral { get { return Me.Specialization == WoWSpec.DruidFeral; } }
internal WoWUnit MeleeTarget { get { return GetMeleeTarget(); } }
#region overrides
public override WoWClass Class { get { return WoWClass.Druid; } }
protected override Composite CreateCombat()
{
return new LockSelector(
new Decorator(ret => Feral, FeralRotation()),
new Decorator(ret => Guardian, GuardianRotation()));
}
protected override Composite CreateRest()
{
return new PrioritySelector(
Heals(),
new Decorator(ret => (Me.HasAura("Incarnation: King of the Jungle") || Me.HasAura("Prowl")) && Attackable(CurrentTarget) && InRange(CurrentTarget), StealthAbilities()),
new Decorator(ret => DruidSettings.Instance.AutoCombat && Me.HasAura("Prowl"), StealthAbilities()),
new Decorator(ret => DruidSettings.Instance.AutoCombat && !Me.HasAura("Prowl"), CreateCombat())
);
}
protected override Composite CreateBuffs()
{
return new PrioritySelector(
CastSpell("Mark of the Wild", ret => Me, ret => DruidSettings.Instance.MarkoftheWild && NeedMark(Me), 600, true, false),
CastSpell("Aquatic Form", ret=> Me, ret=> DruidSettings.Instance.AquaticForm && Me.IsSwimming && Me.Shapeshift != ShapeshiftForm.Aqua, 1, true, false),
new Decorator(ret => (!Me.GroupInfo.IsInParty || !Me.GroupInfo.IsInRaid), Rejuvenation()),
SelfBuff("Prowl", ret => Feral && DruidSettings.Instance.UseProwl && !Me.HasAura("Prowl") &&
Styx.CommonBot.POI.BotPoi.Current.Type != Styx.CommonBot.POI.PoiType.Loot && !Me.Mounted && !Me.IsCasting &&
Me.Debuffs.Count == 0 && (Me.Shapeshift != ShapeshiftForm.Travel || Me.Shapeshift != ShapeshiftForm.Aqua) &&
!NeedMark(Me) && !CarryingFlag(Me), 10),
new Decorator(ret => GeneralSettings.Instance.AutoFlask, AlchemyFlask()));
}
protected override void RegisterHotkeys()
{
if(GeneralSettings.Instance.AdditionalDebugging) AttachCombatLogEvent();
}
protected override void UnregisterHotkeys()
{
DetachCombatLogEvent();
}
#endregion
#region Feral
public Composite FeralRotation()
{
return new PrioritySelector(
Heals(),
CastSpell("Cat Form", ret => Me, ret => Me.ManaPercent >= 4 && Me.Shapeshift != ShapeshiftForm.Cat && !Me.HasAura("Cat Form"), 1, true, false),
new Decorator(ret => !GeneralSettings.Instance.DisableAutomaticBehaviors, EnsureFacing(ret => CurrentTarget)),
new Decorator(ret => !GeneralSettings.Instance.DisableMovement, MoveToTarget(ret => CurrentTarget)),
new Decorator(ret => DruidSettings.Instance.Interrupt, Interrupts()),
new Decorator(ret => Me.HasAura("Incarnation: King of the Jungle"), StealthAbilities()),
new Decorator(ret => Me.CurrentMap.IsArena, FeralPVP()),
new Decorator(ret => InBG, FeralPVP()),
new Decorator(ret => CountHostileNear(Me, 8) >= GeneralSettings.Instance.AOEHostileCount, CatMultipleTarget()),
new Decorator(ret => CountHostileNear(Me, 8) < GeneralSettings.Instance.AOEHostileCount, CatSingleTarget()));
}
public Composite CatMultipleTarget()
{
return new PrioritySelector(
SelfBuff("Savage Roar", ret => !Me.HasAura("Savage Roar")),
CastSpell("Thrash", ret => HostileNeedMyAura("Thrash", 3, 1), ret=> true),
CastSpell("Swipe", ret => true));
}
public Composite FeralPVP()
{
return new PrioritySelector(
SelfBuff("Savage Roar", ret => HasGlyph.Contains("Glyph of Savagery") && Me.ComboPoints == 0 && !Me.HasAura("Savage Roar"), 12),
CastSpell("Ravage!", ret => MeleeTarget, ret => !Me.HasAura("Stampede") && Me.ComboPoints < 4 && Me.EnergyPercent > 75),
CastSpell("Faerie Fire", ret => HostileNeedMyAura(HasTalent.Contains("Faerie Swarm") ? "Faerie Swarm" : "Faerie Fire"), ret => true),
SelfBuff("Tiger's Fury", ret => Me.EnergyPercent < 15, 30),
CastSpell("Ferocious Bite", ret=> GetMeleeTarget(25), ret => Me.ComboPoints == 5),
CastSpell("Soul Swap", ret=> HostileNeedMyAura("Rip", 1000, 0), ret=> NearbyHostilesHasMyAura("Rip", 16000, 0).Where(unit => !unit.IsAlive).Count() != 0),
CastSpell("Rip", ret=> HostileNeedMyAura("Rip", 0, 0), ret => Me.ComboPoints == 5),
CastSpell("Rake", ret=> HostileNeedMyAura("Rake", 0, 0), ret => true),
CastSpell("Thrash", ret => HostileNeedMyAura("Thrash", 0, 0), ret => true),
Berserk(),
Incarnation(),
CastSpell("Mangle", ret => Me.ComboPoints < 5),
CastSpell("Ferocious Bite", ret=> HostileHasMyAura("Rip", 100, 0, 0), ret=> Me.ComboPoints == 5),
SelfBuff("Force of Nature", ret => HasTalent.Contains("Force of Nature") && ValidTarget(MeleeTarget)),
CastSpell("Mangle", ret=> MeleeTarget, ret => (Me.EnergyPercent >= 50 || Me.HasAura("Berserk"))),
CastSpell("Wild Charge", ret => HasTalent.Contains("Wild Charge") && DruidSettings.Instance.WildCharge && IsFacing(MeleeTarget) && !InRange(MeleeTarget) && !Me.Rooted));
}
......
1. Check Feral or Guardian skilled,
2. Composite FeralRotation() => Me.CurrentMap.IsArena, FeralPVP
3. The FeralPvP Start that means he buff Savage Roar but dont attack :/ in Pve, and on Pupped he attack just not in arena ...
I think its because of the Me.CurrentTarget but i dont know how to fix it I tryed NearbyHostilesNeedMyAura as well but nothing change...

Last edited: