mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Cleanup] Mask GM Show Buff message behind EntityVariable (#4419)
* [Cleanup] Mask GM Show Buff message behind EntityVariable Removes the spam of "Your GM flag allows you to always see your targets' buffs." for GMs every time a buff lands on a target. It will now lock to an Entity Variable and only show once per zone. * Convert string to constexpr * Switch from string to char
This commit is contained in:
+4
-1
@@ -1655,7 +1655,10 @@ void EntityList::QueueClientsByTarget(Mob *sender, const EQApplicationPacket *ap
|
||||
Send = clear_target_window;
|
||||
if (c->GetGM() || RuleB(Spells, AlwaysSendTargetsBuffs)) {
|
||||
if (c->GetGM()) {
|
||||
c->Message(Chat::White, "Your GM flag allows you to always see your targets' buffs.");
|
||||
if (!c->EntityVariableExists(SEE_BUFFS_FLAG)) {
|
||||
c->Message(Chat::White, "Your GM flag allows you to always see your targets' buffs.");
|
||||
c->SetEntityVariable(SEE_BUFFS_FLAG, "1");
|
||||
}
|
||||
}
|
||||
|
||||
Send = !clear_target_window;
|
||||
|
||||
Reference in New Issue
Block a user