mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-24 06:23:35 +00:00
change AND priority
This commit is contained in:
parent
291fc83dc8
commit
775e4fee9e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user