Spell.Cast("Aimed Shot", ret => StyxWoW.Me.CurrentTarget.HealthPercent > 80 ||Unit.HasAura(StyxWoW.Me.CurrentTarget, "Ready, Set, Aim...", 5)),
Spell.Cast(
"Concussive Shot",
ret => StyxWoW.Me.CurrentTarget.CurrentTarget == null || StyxWoW.Me.CurrentTarget.CurrentTarget == StyxWoW.Me),
thanks for the code help but it doesnt seem to fix it not casting aimed shot once the stack gets to 5.
Code:Spell.Cast("Aimed Shot", ret => StyxWoW.Me.CurrentTarget.HealthPercent > 80 ||Unit.HasAura(StyxWoW.Me.CurrentTarget, "Ready, Set, Aim...", 5)),
This doesnt seem to work either it seems to just cast it when it can
Code:Spell.Cast( "Concussive Shot", ret => StyxWoW.Me.CurrentTarget.CurrentTarget == null || StyxWoW.Me.CurrentTarget.CurrentTarget == StyxWoW.Me),
Spell.Cast("Aimed Shot", ret => StyxWoW.Me.CurrentTarget.HealthPercent > 80 ||Unit.HasAura(StyxWoW.Me, "Fire!")),
Spell.Cast("Concussive Shot"),
Mh, i'm a hunter noob (really!) , but:
When it proccs 5 times, you geht the "Fire!" buff? Am i right? So the following should work:
Code:Spell.Cast("Aimed Shot", ret => StyxWoW.Me.CurrentTarget.HealthPercent > 80 ||Unit.HasAura(StyxWoW.Me, "Fire!")),
does the same for you, doesnt it?Code:Spell.Cast("Concussive Shot"),
No you get the buff on the first one but each stack decreases the shot/cast time so you need to get to 5 then use the spell as its instant
The arcane shot was in the cc when i started i dont really understand the logic that they were trying to achieve you should use the spell if the mob is aggroed on to you but ignore if its a boss as it wont stop them coming. - i guess thats what they wanted was if the target mob has you target use it.
Spell.Cast("Aimed Shot", ret => StyxWoW.Me.CurrentTarget.HealthPercent > 80 ||Unit.HasAura(StyxWoW.Me, "Fire!", 1)),
Code:Spell.Cast("Aimed Shot", ret => StyxWoW.Me.CurrentTarget.HealthPercent > 80 ||Unit.HasAura(StyxWoW.Me, "Fire!", 1)),
That should work for the aimed shot one. The buff stacks on you, not the target so it would be StyxWoW.Me, instead of StyxWoW.Me.CurrentTarget.
The code for the concussive shot looks correct. Should be used when the target doesn't have a target or when the target is you.
Edit: Wowhead says "Ready, Set, Aim..." procs "Fire!" buff when stacked to 5. Changed spell to the correct proc.
Thats right.The cc moves even if you use lazyrider and have disable movement set to True.
Retri Paladin.
Spell.CastOnGround("Explosive Trap", ret => StyxWoW.Me.CurrentTarget.Location, ret => StyxWoW.Me.HasAura("Trap Launcher"))
How can i get something like this to work:
Code:Spell.CastOnGround("Explosive Trap", ret => StyxWoW.Me.CurrentTarget.Location, ret => StyxWoW.Me.HasAura("Trap Launcher"))
That should work fine, you have the trap launcher spell cast as well I suppose?
Make sure that your has aura is actually working as well; use profilehelper and dump your auras with and without the proc and see what changes, you may need to do a duration check instead.
return new PrioritySelector(
CreateEnsureTarget(),
CreateAutoAttack(true),
CreateFaceUnit(),
// Note: You should have this in 2 different methods. Hence the reason for WoWContext being a [Flags] enum.
// In this case, since its only one spell being changed, we can live with it.
CreateSpellCast("Death Grip", ret => Me.CurrentTarget.Distance > 15 && !Me.IsInInstance),
//Make sure we're in range, and facing the damned target. (LOS check as well)
CreateMoveToAndFace(5f, ret => Me.CurrentTarget),
CreateSpellCast("Pillar of Frost"),
CreateSpellCast("Blood Tap", ret => Me.DeathRuneCount != 2),
CreateSpellCast("Raise Dead", ret => !Me.GotAlivePet || Me.HasAura("Unholy Strenght")),
CreateSpellCast("Outbreak", ret => Me.CurrentTarget.HasAura("Frost Fever") || Me.CurrentTarget.HasAura("Blood Plague")),
CreateSpellCast("Howling Blast", ret => !Me.CurrentTarget.HasAura("Frost Fever")),
CreateSpellCast(
"Pestilence", ret => Me.CurrentTarget.HasAura("Blood Plague") && Me.CurrentTarget.HasAura("Frost Fever") &&
(from add in NearbyUnfriendlyUnits
where !add.HasAura("Blood Plague") && !add.HasAura("Frost Fever") && add.Distance < 10
select add).Count() > 0),
new Decorator(
ret => SpellManager.CanCast("Death and Decay") && NearbyUnfriendlyUnits.Count(a => a.Distance < 8) > 1,
new Action(
ret =>
{
SpellManager.Cast("Death and Decay");
LegacySpellManager.ClickRemoteLocation(Me.CurrentTarget.Location);
})),
CreateSpellCast("Plague Strike", ret => !Me.CurrentTarget.HasAura("Blood Plague")),
CreateSpellCast(
"Obliterate",
ret => (Me.FrostRuneCount == 2 && Me.UnholyRuneCount == 2) || Me.DeathRuneCount == 2 || Me.HasAura("Killing Machine")),
CreateSpellCast("Frost Strike", ret => Me.CurrentRunicPower == Me.MaxRunicPower-35),
CreateSpellCast("Empower Rune Weapon"),
CreateSpellCast("Howling Blast", ret => Me.HasAura("Freezing Fog")),
CreateSpellCast("Obliterate"),
CreateSpellCast("Frost Strike"),
CreateSpellCast("Horn of Winter"));