mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[6873] make gameobjects scriptable. Patch provided by NoFantasy.
Signed-off-by: Neo2003 <neo.2003@hotmail.fr>
This commit is contained in:
parent
d44b1bc81b
commit
9254ca19e6
2 changed files with 5 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue