falldown
Member
- Joined
- May 15, 2011
- Messages
- 453
- Reaction score
- 8
So here's some background to what's going on. Me and ossirian started to edit and improve the FelHunter CC to better suit dungeons and raids. No we're trying to add support for multishot which basically required add detection, and since we're both complete noobs at coding, ossirian asked bobby53 for some assistance, and he made us some code for the multishot.
Now, when I tried to include that code I get an error when HB is initializing and compiling the CC's. The error was in Finnish but I it said something along the lines:
FelHunter.cs Line: 64 Error: Method CastSpells any overloaded form of arguments is not 2.
So I was hoping someone more experienced could help out a little and put the multishot code into the CC so it would actually work
That'd be awesome since Hunters don't really have a great CC for raiding/instances.
Here's the code for the multishot that Bobby53 provided us with.
So if anyone could lend us a helping hand and make this work with the CC that would be awesome, thanks in advance
The CC is included in the attachment
Now, when I tried to include that code I get an error when HB is initializing and compiling the CC's. The error was in Finnish but I it said something along the lines:
FelHunter.cs Line: 64 Error: Method CastSpells any overloaded form of arguments is not 2.
So I was hoping someone more experienced could help out a little and put the multishot code into the CC so it would actually work

Here's the code for the multishot that Bobby53 provided us with.
private static int HowManyMobsNearby(WoWUnit target, int range )
{
int rangeSqr = range * range;
int cnt =
(from o in ObjectManager.ObjectList
where o is WoWUnit && target.Location.DistanceSqr(o.Location) <= rangeSqr
let u = o.ToUnit()
where u.Combat && u.IsAlive && u.Attackable
&& ((u.IsPlayer && u.ToPlayer().IsHorde != ObjectManager.Me.IsHorde) || (!u.IsFriendly))
select u
).Count();
return cnt;
}
And then...
SC.CastSpell("Multi-Shot", a => Me.GotTarget && HowManyMobsNearby(StyxWoW.Me, 8 ) >= 3),
So if anyone could lend us a helping hand and make this work with the CC that would be awesome, thanks in advance

The CC is included in the attachment