What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Unit.NearbyUnfriendlyUnits.Count and how to make it work?

Ruinit

Member
Joined
Nov 1, 2010
Messages
992
Reaction score
4
Hi,

Trying to get Multi-Shot to work for hunters and Hurricane for Moonkin's and I just can't figure it out. Look at what others have done but I can't get them to work or compile :( I am using singular.

Tried adapting this also.
Code:
// AoE
                new Decorator(ret => Unit.NearbyUnfriendlyUnits.Count(u => u.Distance < 15) >= 5,
                    new PrioritySelector(
                        Spell.BuffSelf("Demon Soul"),
                        Spell.BuffSelf("Soulburn", ret => !StyxWoW.Me.CurrentTarget.HasAura("Seed of Corruption") && StyxWoW.Me.CurrentSoulShards > 0 && TalentManager.GetCount(1, 15) == 1),
                        Spell.Buff("Seed of Corruption", ret => !StyxWoW.Me.CurrentTarget.HasAura("Seed of Corruption"))
                        )),
 
I used the threat list to know which mobs are in aggro with me. Try to look at my shadow priest CC.
 
Hi,

Trying to get Multi-Shot to work for hunters and Hurricane for Moonkin's and I just can't figure it out. Look at what others have done but I can't get them to work or compile :( I am using singular.

Tried adapting this also.
Code:
// AoE
                new Decorator(ret => Unit.NearbyUnfriendlyUnits.Count(u => u.Distance < 15) >= 5,
                    new PrioritySelector(
                        Spell.BuffSelf("Demon Soul"),
                        Spell.BuffSelf("Soulburn", ret => !StyxWoW.Me.CurrentTarget.HasAura("Seed of Corruption") && StyxWoW.Me.CurrentSoulShards > 0 && TalentManager.GetCount(1, 15) == 1),
                        Spell.Buff("Seed of Corruption", ret => !StyxWoW.Me.CurrentTarget.HasAura("Seed of Corruption"))
                        )),

Your using singular so look at clusters it is fairly well documented it will be something like

Clusters.GetClusterCount(StyxWoW.Me.CurrentTarget, Unit.NearbyUnfriendlyUnits, ClusterType.Radius, 10f) >= 2

Also why start a new thread?
 
Your using singular so look at clusters it is fairly well documented it will be something like

Clusters.GetClusterCount(StyxWoW.Me.CurrentTarget, Unit.NearbyUnfriendlyUnits, ClusterType.Radius, 10f) >= 2

Also why start a new thread?

Sorry kinda figure the first one was in the wrong place. Was hoping someone smarter than me would fix it ... lol
 
Back
Top