mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-04 00:02:24 +00:00
procs silence (#1973)
This commit is contained in:
parent
872d494bb6
commit
e962ad3a35
10
zone/mob.cpp
10
zone/mob.cpp
@ -3984,6 +3984,16 @@ void Mob::ExecWeaponProc(const EQ::ItemInstance *inst, uint16 spell_id, Mob *on,
|
|||||||
return;
|
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()) {
|
if(inst && IsClient()) {
|
||||||
//const cast is dirty but it would require redoing a ton of interfaces at this point
|
//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.
|
//It should be safe as we don't have any truly const EQ::ItemInstance floating around anywhere.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user