Updated
Code:
private string Debuff(IMonster m, bool showDebuff) {
if (!showDebuff) return "";
string textDebuff = null;
if (m.Locust) textDebuff += "Locust";
if (m.Haunted) textDebuff += (textDebuff == null ? "Haunt" : ", Haunt");
if (m.Palmed) textDebuff += (textDebuff == null ? "Palm" : ", Palm");
if (m.MarkedForDeath) textDebuff += (textDebuff == null ? "Mark" : ", Mark");
if (m.Strongarmed) textDebuff += (textDebuff == null ? "Strongarm" : ", Strongarm");
string textCC = null;
if (m.Frozen) textCC += "Frozen";
if (m.Chilled) textCC += (textCC == null ? "Chill" : ", Chill");
if (m.Slow) textCC += (textCC == null ? "Slow" : ", Slow");
if (m.Stunned) textCC += (textCC == null ? "Stun" : ", Stun");
if (m.Invulnerable) textCC += (textCC == null ? "Invulnerable" : ", Invulnerable");
if (m.Blind) textCC += (textCC == null ? "Blind" : ", Blind");
string Krysbin = null;
bool activeKrysbin = false;
foreach (var player in Hud.Game.Players) {
activeKrysbin = player.Powers.BuffIsActive(475241);
if (activeKrysbin) continue;
}
if (activeKrysbin) {
if (textCC!=null) {
if (textCC.Contains("Frozen") || textCC.Contains("Chill") || textCC.Contains("Stun") || textCC.Contains("Blind")) {
Krysbin = "Krysbin2, ";
} else if (textCC.Contains("Slow")){
Krysbin = "Krysbin, ";
}
}
}
var output = "\t" + Krysbin + textDebuff + (textDebuff != null && textCC != null ? " | " : "") + textCC;
return output;
}