From ec465616b41019a39d988b8c76aae9cd0bd5c3dc Mon Sep 17 00:00:00 2001 From: Fryguy Date: Mon, 8 Jan 2024 23:26:10 -0500 Subject: [PATCH] [Feature] Rule: UseLiveBlockedMessage Bard Spam (#3933) When using `UseLiveBlockedMessage` rule, bard will get massively spammed when doing aoe songs that are blocked. Not sure it is resonable to try and filter out all stacking messages from songs, but rather just block bards as a whole. I can not think of many cases where bards care of songs land or not when using this rule. --- zone/spells.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index 76795feca..78dcd30e8 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -3529,7 +3529,9 @@ int Mob::AddBuff(Mob *caster, uint16 spell_id, int duration, int32 level_overrid LogSpells("Adding buff [{}] failed: stacking prevented by spell [{}] in slot [{}] with caster level [{}]", spell_id, curbuf.spellid, buffslot, curbuf.casterlevel); if (caster && caster->IsClient() && RuleB(Client, UseLiveBlockedMessage)) { - caster->Message(Chat::Red, "Your %s did not take hold on %s. (Blocked by %s.)", spells[spell_id].name, GetName(), spells[curbuf.spellid].name); + if (caster->GetClass() != Class::Bard) { + caster->Message(Chat::Red, "Your %s did not take hold on %s. (Blocked by %s.)", spells[spell_id].name, GetName(), spells[curbuf.spellid].name); + } } return -1; }