[Rule] Add rule for NPC Level Based Buff Restrictions. (#2708)

* [Rule] Add rule for NPC Level Based Buff Restrictions.

* Erroneous whitespace

* Change prefix on log message

* Added log message when GM casts
This commit is contained in:
Paul Coene authored and GitHub committed 2023-01-15 15:30:42 -06:00
1 parent 9e3539295b
commit ca0ae3cb98
6 files changed
+63 -43

No files matched your search

+2 -2
View File
@@ -735,11 +735,11 @@ bool ZoneDatabase::GetBasePetItems(int32 equipmentset, uint32 *items) {
return true;
}
bool Pet::CheckSpellLevelRestriction(uint16 spell_id)
bool Pet::CheckSpellLevelRestriction(Mob *caster, uint16 spell_id)
{
auto owner = GetOwner();
if (owner)
return owner->CheckSpellLevelRestriction(spell_id);
return owner->CheckSpellLevelRestriction(caster, spell_id);
return true;
}