[6873] make gameobjects scriptable. Patch provided by NoFantasy.

Signed-off-by: Neo2003 <neo.2003@hotmail.fr>
This commit is contained in:
Neo2003 2008-12-04 21:51:09 +01:00
parent d44b1bc81b
commit 9254ca19e6
2 changed files with 5 additions and 1 deletions

View file

@ -53,6 +53,7 @@
#include "SocialMgr.h" #include "SocialMgr.h"
#include "Util.h" #include "Util.h"
#include "TemporarySummon.h" #include "TemporarySummon.h"
#include "ScriptCalls.h"
pEffect SpellEffects[TOTAL_SPELL_EFFECTS]= pEffect SpellEffects[TOTAL_SPELL_EFFECTS]=
{ {
@ -2794,6 +2795,9 @@ void Spell::SendLoot(uint64 guid, LootType loottype)
if (gameObjTarget) if (gameObjTarget)
{ {
if (Script->GOHello(player, gameObjTarget))
return;
switch (gameObjTarget->GetGoType()) switch (gameObjTarget->GetGoType())
{ {
case GAMEOBJECT_TYPE_DOOR: case GAMEOBJECT_TYPE_DOOR:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "6872" #define REVISION_NR "6873"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__