diff options
| author | ModoX <moardox@gmail.com> | 2024-12-22 00:14:59 +0100 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2024-12-22 11:54:57 +0100 |
| commit | 78590eb6e82a2d820fc78b61ab349160788104f8 (patch) | |
| tree | f426555bd955ad17fd4db5b228609e5ce20aeb37 | |
| parent | 686e575b6faa9feb6d91908374bfe4716d477d04 (diff) | |
Core/Object: Fixed interaction dynamic flags assignment for GAMEOBJECT_TYPE_SPELLCASTER gameobjects
Closes #30533
(cherry picked from commit e58847779134325d9adada3fa9059478d3f350de)
| -rw-r--r-- | src/server/game/Entities/Object/Updates/ViewerDependentValues.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Entities/Object/Updates/ViewerDependentValues.h b/src/server/game/Entities/Object/Updates/ViewerDependentValues.h index 7e7ede08e76..dd70a7cf392 100644 --- a/src/server/game/Entities/Object/Updates/ViewerDependentValues.h +++ b/src/server/game/Entities/Object/Updates/ViewerDependentValues.h @@ -141,7 +141,8 @@ public: // 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) // (Ignore GAMEOBJECT_TYPE_FLAGSTAND as interaction is handled by GO_DYNFLAG_LO_NO_INTERACT) - if (gameObject->GetGoType() != GAMEOBJECT_TYPE_FLAGSTAND && gameObject->GetGoType() != GAMEOBJECT_TYPE_GATHERING_NODE) + // (Ignore GAMEOBJECT_TYPE_SPELLCASTER as interaction is handled by GO_DYNFLAG_LO_NO_INTERACT) + if (gameObject->GetGoType() != GAMEOBJECT_TYPE_GATHERING_NODE && gameObject->GetGoType() != GAMEOBJECT_TYPE_FLAGSTAND && gameObject->GetGoType() != GAMEOBJECT_TYPE_SPELLCASTER) if (gameObject->HasConditionalInteraction() && !gameObject->HasFlag(GO_FLAG_INTERACT_COND)) dynFlags |= GO_DYNFLAG_LO_INTERACT_COND; |
