diff --git a/src/strategy/values/StatsValues.cpp b/src/strategy/values/StatsValues.cpp index 2c87ec72..6e2a3add 100644 --- a/src/strategy/values/StatsValues.cpp +++ b/src/strategy/values/StatsValues.cpp @@ -48,7 +48,7 @@ bool PetIsDeadValue::Calculate() if (!bot->GetPet()) { uint32 ownerid = bot->GetGUID().GetCounter(); - QueryResult result = CharacterDatabase.Query("SELECT id FROM character_pet WHERE owner = {}", ownerid); + QueryResult result = CharacterDatabase.Query("SELECT id FROM character_pet WHERE owner = {} and slot = 0", ownerid); if (!result) return false;