mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
procs silence (#1973)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user