From e962ad3a351158bfa98f2b50a50355119453797c Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Tue, 8 Feb 2022 07:36:20 -0500 Subject: [PATCH] procs silence (#1973) --- zone/mob.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zone/mob.cpp b/zone/mob.cpp index d6f56a8db..6f180d768 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -3984,6 +3984,16 @@ void Mob::ExecWeaponProc(const EQ::ItemInstance *inst, uint16 spell_id, Mob *on, return; } + if (IsSilenced() && !IsDiscipline(spell_id)) { + MessageString(Chat::Red, SILENCED_STRING); + return; + } + + if (IsAmnesiad() && IsDiscipline(spell_id)) { + MessageString(Chat::Red, MELEE_SILENCE); + return; + } + if(inst && IsClient()) { //const cast is dirty but it would require redoing a ton of interfaces at this point //It should be safe as we don't have any truly const EQ::ItemInstance floating around anywhere.