mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/GameObjects: added missing cherrypick data from 6bcef33bb1
This commit is contained in:
@@ -136,8 +136,17 @@ public:
|
||||
break;
|
||||
}
|
||||
|
||||
if (!receiver->IsGameMaster() && !gameObject->MeetsInteractCondition(receiver))
|
||||
dynFlags |= GO_DYNFLAG_LO_NO_INTERACT;
|
||||
if (!receiver->IsGameMaster())
|
||||
{
|
||||
// GO_DYNFLAG_LO_INTERACT_COND should be applied to GOs with conditional interaction (without GO_FLAG_INTERACT_COND) to disable interaction
|
||||
// (Ignore GAMEOBJECT_TYPE_GATHERING_NODE as some profession-related GOs may include quest loot and can always be interacted with)
|
||||
if (gameObject->GetGoType() != GAMEOBJECT_TYPE_GATHERING_NODE)
|
||||
if (gameObject->HasConditionalInteraction() && !gameObject->HasFlag(GO_FLAG_INTERACT_COND))
|
||||
dynFlags |= GO_DYNFLAG_LO_INTERACT_COND;
|
||||
|
||||
if (!gameObject->MeetsInteractCondition(receiver))
|
||||
dynFlags |= GO_DYNFLAG_LO_NO_INTERACT;
|
||||
}
|
||||
|
||||
dynamicFlags = (uint32(pathProgress) << 16) | uint32(dynFlags);
|
||||
}
|
||||
|
||||
@@ -3019,7 +3019,8 @@ enum GameObjectDynamicLowFlags : uint16
|
||||
GO_DYNFLAG_LO_STOPPED = 0x0040, // Transport is stopped
|
||||
GO_DYNFLAG_LO_NO_INTERACT = 0x0080,
|
||||
GO_DYNFLAG_LO_INVERTED_MOVEMENT = 0x0100, // GAMEOBJECT_TYPE_TRANSPORT only
|
||||
GO_DYNFLAG_LO_HIGHLIGHT = 0x0200, // Allows object highlight when GO_DYNFLAG_LO_ACTIVATE or GO_DYNFLAG_LO_SPARKLE are set, not only when player is on quest determined by Data fields
|
||||
GO_DYNFLAG_LO_INTERACT_COND = 0x0200, // Cannot interact (requires GO_DYNFLAG_LO_ACTIVATE to enable interaction clientside)
|
||||
GO_DYNFLAG_LO_HIGHLIGHT = 0x4000, // Allows object highlight when GO_DYNFLAG_LO_ACTIVATE are set, not only when player is on quest determined by Data fields
|
||||
};
|
||||
|
||||
// client side GO show states
|
||||
|
||||
Reference in New Issue
Block a user