[Bug Fix] BuffLevelRestrictions were restricting group buffs if mob targeted (#2809)

This commit is contained in:
Paul Coene 2023-01-29 18:52:03 -05:00 committed by GitHub
parent 265b32f46f
commit 4d2418af9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3205,8 +3205,10 @@ bool Mob::CheckSpellLevelRestriction(Mob *caster, uint16 spell_id)
// NON GM clients might be restricted by rule setting
if (caster->IsClient()) {
if (RuleB(Spells, BuffLevelRestrictions)) {
check_for_restrictions = true;
if (IsClient()) { // Only restrict client on client for this rule
if (RuleB(Spells, BuffLevelRestrictions)) {
check_for_restrictions = true;
}
}
}
// NPCS might be restricted by rule setting