public static bool NeedsCleanse(this TorCharacter p) { foreach (var d in DebuffList) { if (d.Stacks == 0 && p.HasDebuff(d.Name)) { return(true); } if (d.Stacks > 0 && p.HasDebuffCount(d.Name, d.Stacks)) { return(true); } } return(false); }
public static bool HasDebuffCount(this TorCharacter p, string debuff, int stacks) { return(p.HasDebuff(debuff) && p.Debuffs.Any(d => d.Name.Contains(debuff) && d.GetStacks() >= stacks)); }