mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
[Bug Fix] BuffLevelRestrictions were restricting group buffs if mob targeted (#2809)
This commit is contained in:
parent
265b32f46f
commit
4d2418af9d
@ -3205,10 +3205,12 @@ bool Mob::CheckSpellLevelRestriction(Mob *caster, uint16 spell_id)
|
|||||||
|
|
||||||
// NON GM clients might be restricted by rule setting
|
// NON GM clients might be restricted by rule setting
|
||||||
if (caster->IsClient()) {
|
if (caster->IsClient()) {
|
||||||
|
if (IsClient()) { // Only restrict client on client for this rule
|
||||||
if (RuleB(Spells, BuffLevelRestrictions)) {
|
if (RuleB(Spells, BuffLevelRestrictions)) {
|
||||||
check_for_restrictions = true;
|
check_for_restrictions = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// NPCS might be restricted by rule setting
|
// NPCS might be restricted by rule setting
|
||||||
else if (RuleB(Spells, NPCBuffLevelRestrictions)) {
|
else if (RuleB(Spells, NPCBuffLevelRestrictions)) {
|
||||||
check_for_restrictions = true;
|
check_for_restrictions = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user