Hi guys,
i want to check a unit for a debuff with Trinity.
currently i tried
and
but both don't seem to find, if the Exploding Palm is on the unit.
here the code i wrote:
is the SNOPower the wrong one?
does the methode .HasDebuff work?
i want to check a unit for a debuff with Trinity.
currently i tried
Code:
unit.HasDebuff(Skills.Monk.ExplodingPalm.SNOPower)
Code:
unit.HasDebuff(SNOPower.Monk_ExplodingPalm)
here the code i wrote:
Code:
private static bool GetExploTarget()
{
LowestHealthTarget = null;
int leastHitPoints = 0;
foreach (TrinityCacheObject unit in Trinity.ObjectCache)
{
if(unit.IsUnit && !unit.IsMe)
{
if(!unit.HasDebuff(SNOPower.Monk_ExplodingPalm))
{
if (unit.HitPoints < leastHitPoints || leastHitPoints == 0)
LowestHealthTarget = unit;
}
}
}
return LowestHealthTarget != null;
}
is the SNOPower the wrong one?
does the methode .HasDebuff work?