change AND priority

This commit is contained in:
jadebenn 2023-12-13 01:01:34 -06:00
parent 291fc83dc8
commit 775e4fee9e

View File

@ -855,7 +855,7 @@ void PetComponent::OnFollow() {
Entity* closestTreasure = PetDigServer::GetClosestTresure(ownerPos);
const bool nonDragonForBone = closestTreasure->GetLOT() == 12192 && m_Parent->GetLOT() != 13067;
if (closestTreasure != nullptr && digUnlocked && !nonDragonForBone) {
if (!nonDragonForBone && closestTreasure != nullptr && digUnlocked) {
const NiPoint3 treasurePos = closestTreasure->GetPosition();
const LWOOBJID treasureID = closestTreasure->GetObjectID();
const float distance = Vector3::DistanceSquared(ownerPos, treasurePos);