mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
Add buff level restrictions for pets
This commit is contained in:
parent
aadc4b5e6b
commit
8396f19e85
@ -738,3 +738,10 @@ bool ZoneDatabase::GetBasePetItems(int32 equipmentset, uint32 *items) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Pet::CheckSpellLevelRestriction(uint16 spell_id)
|
||||||
|
{
|
||||||
|
auto owner = GetOwner();
|
||||||
|
if (owner)
|
||||||
|
return owner->CheckSpellLevelRestriction(spell_id);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|||||||
@ -40,6 +40,7 @@ class Pet : public NPC {
|
|||||||
public:
|
public:
|
||||||
Pet(NPCType *type_data, Mob *owner, PetType type, uint16 spell_id, int16 power);
|
Pet(NPCType *type_data, Mob *owner, PetType type, uint16 spell_id, int16 power);
|
||||||
virtual void SetTarget(Mob *mob);
|
virtual void SetTarget(Mob *mob);
|
||||||
|
virtual bool CheckSpellLevelRestriction(uint16 spell_id);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user