[Database] Move pets query to content database (#4296)

This commit is contained in:
JJ authored and GitHub committed 2024-05-04 16:59:57 -05:00
1 parent dfd1bfbd49
commit f77eec83e5
1 file changed
+2 -2
+2 -2
View File
@@ -383,7 +383,7 @@ bool ZoneDatabase::GetPetEntry(const std::string& pet_type, PetRecord *p)
bool ZoneDatabase::GetPoweredPetEntry(const std::string& pet_type, int16 pet_power, PetRecord* r)
{
const auto& l = PetsRepository::GetWhere(
*this,
content_db,
fmt::format(
"`type` = '{}' AND `petpower` <= {} ORDER BY `petpower` DESC LIMIT 1",
pet_type,
@@ -395,7 +395,7 @@ bool ZoneDatabase::GetPoweredPetEntry(const std::string& pet_type, int16 pet_pow
return false;
}
auto e = l.front();
auto &e = l.front();
r->npc_type = e.npcID;
r->temporary = e.temp;