From 6ec9dd5d931b0c978fdf39256ada4b9ab7473b4b Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Mon, 1 Mar 2010 16:51:08 +0100 Subject: [PATCH] [9499] Add replacement spells for GO type 10 that may have dummy spellId in _template Signed-off-by: NoFantasy --- src/game/GameObject.cpp | 10 ++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 0bfb0b918..e49267dee 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -1076,6 +1076,16 @@ void GameObject::Use(Unit* user) // cast this spell later if provided spellId = info->goober.spellId; + // database may contain a dummy spell, so it need replacement by actually existing + switch(spellId) + { + case 34448: spellId = 26566; break; + case 34452: spellId = 26572; break; + case 37639: spellId = 36326; break; + case 45367: spellId = 45371; break; + case 45370: spellId = 45368; break; + } + break; } case GAMEOBJECT_TYPE_CAMERA: //13 diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index a656ed2a2..282e77184 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 "9498" + #define REVISION_NR "9499" #endif // __REVISION_NR_H__