mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9205] Move script call GOHello to GameObject::Use
This provide more accurate call in case of delay use from spell effects Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
16c0ff3ef7
commit
544d396beb
4 changed files with 9 additions and 12 deletions
|
|
@ -36,6 +36,7 @@
|
|||
#include "BattleGround.h"
|
||||
#include "BattleGroundAV.h"
|
||||
#include "Util.h"
|
||||
#include "ScriptCalls.h"
|
||||
|
||||
GameObject::GameObject() : WorldObject()
|
||||
{
|
||||
|
|
@ -869,6 +870,9 @@ void GameObject::Use(Unit* user)
|
|||
uint32 spellId = 0;
|
||||
bool triggered = false;
|
||||
|
||||
if (user->GetTypeId() == TYPEID_PLAYER && Script->GOHello((Player*)user, this))
|
||||
return;
|
||||
|
||||
switch(GetGoType())
|
||||
{
|
||||
case GAMEOBJECT_TYPE_DOOR: //0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue