tuanha
Well-Known Member
- Joined
- Nov 29, 2011
- Messages
- 6,998
- Reaction score
- 124
Hi guys, i made script like this
But the bot never dispel Frost Nova (still dispel Ice Barrier, Chain of Ice and other stuff
So i made this special check for Frost Nova and it work
Can anyone confirm Frost Nova Root dispellable is bugged?
Correct me if im wrong.
Code:
public double RootDispelable(WoWUnit Target)
{
var LongestCC = Target.GetAllAuras().Where(a => (
a.Spell.Mechanic == WoWSpellMechanic.Rooted
) &&
(a.Spell.DispelType == WoWDispelType.Magic || a.Spell.DispelType == WoWDispelType.Disease))
.OrderBy(a => a.TimeLeft).FirstOrDefault();
if (LongestCC != null)
{
return LongestCC.TimeLeft.TotalMilliseconds;
}
else
{
return 0;
}
}
But the bot never dispel Frost Nova (still dispel Ice Barrier, Chain of Ice and other stuff
So i made this special check for Frost Nova and it work
Code:
public double RootDispelable(WoWUnit Target)
{
var LongestCC = Target.GetAllAuras().Where(a => (
a.Spell.Mechanic == WoWSpellMechanic.Rooted
) &&
(a.Spell.DispelType == WoWDispelType.Magic || a.Spell.DispelType == WoWDispelType.Disease))
.OrderBy(a => a.TimeLeft).FirstOrDefault();
if (LongestCC != null)
{
return LongestCC.TimeLeft.TotalMilliseconds;
}
else if(Target.Debuffs.ContainsKey("Frost Nova"))
{
return Target.ActiveAuras["Frost Nova"].TimeLeft.TotalMilliseconds;
}
else
{
return 0;
}
}
Can anyone confirm Frost Nova Root dispellable is bugged?
Correct me if im wrong.