diff options
author | ModoX <moardox@gmail.com> | 2024-12-22 00:14:59 +0100 |
---|---|---|
committer | ModoX <moardox@gmail.com> | 2024-12-22 00:14:59 +0100 |
commit | e58847779134325d9adada3fa9059478d3f350de (patch) | |
tree | 7cf8751197b7ce5759d88ff7756470d51a4fbeb2 /src | |
parent | d89a6f1c21ce131dd2e258eb2ef4b280b1e6f254 (diff) |
Core/Object: Fixed interaction dynamic flags assignment for GAMEOBJECT_TYPE_SPELLCASTER gameobjects
Closes #30533
Diffstat (limited to 'src')
-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 019710e6897..7a7f7dcf231 100644 --- a/src/server/game/Entities/Object/Updates/ViewerDependentValues.h +++ b/src/server/game/Entities/Object/Updates/ViewerDependentValues.h @@ -131,7 +131,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; |