From 7246e51a13d00aa5adc62bb69a118063b0e515ed Mon Sep 17 00:00:00 2001 From: Schmoozerd Date: Sat, 5 Nov 2011 20:01:17 +0100 Subject: [PATCH] [11839] Add support to send custom gameobject anim for a few traps The way to filter by display id is rather ugly, but no better solution is in sight. This should be good enough until better (likely model-data) support can be implemented. Also it must be changed if more Traps with this behaviour are found. Signed-off-by: Schmoozerd --- src/game/GameObject.cpp | 4 ++++ src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 6e8ddbfd6..5c6c61afd 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -1018,6 +1018,10 @@ void GameObject::Use(Unit* user) // TODO: all traps can be activated, also those without spell. // Some may have have animation and/or are expected to despawn. + // TODO: Improve this when more information is available, currently these traps are known that must send the anim (Onyxia/ Heigan Fissures) + if (GetDisplayId() == 4392 || GetDisplayId() == 4472 || GetDisplayId() == 6785) + SendGameObjectCustomAnim(GetObjectGuid()); + return; } case GAMEOBJECT_TYPE_CHAIR: //7 Sitting: Wooden bench, chairs diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index bb9daa3e6..2d2fdebdc 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11838" + #define REVISION_NR "11839" #endif // __REVISION_NR_H__