From 9254ca19e66c4acd570a3a3723e7233a0059d43e Mon Sep 17 00:00:00 2001 From: Neo2003 Date: Thu, 4 Dec 2008 21:51:09 +0100 Subject: [PATCH] [6873] make gameobjects scriptable. Patch provided by NoFantasy. Signed-off-by: Neo2003 --- src/game/SpellEffects.cpp | 4 ++++ src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 409a56437..0090fc4b7 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -53,6 +53,7 @@ #include "SocialMgr.h" #include "Util.h" #include "TemporarySummon.h" +#include "ScriptCalls.h" pEffect SpellEffects[TOTAL_SPELL_EFFECTS]= { @@ -2794,6 +2795,9 @@ void Spell::SendLoot(uint64 guid, LootType loottype) if (gameObjTarget) { + if (Script->GOHello(player, gameObjTarget)) + return; + switch (gameObjTarget->GetGoType()) { case GAMEOBJECT_TYPE_DOOR: diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 5c5d8cc55..169735a48 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 "6872" + #define REVISION_NR "6873" #endif // __REVISION_NR_H__