*Fix a bug that gohello is called twice for goober.
--HG-- branch : trunk
This commit is contained in:
@@ -2818,6 +2818,8 @@ void Spell::SendLoot(uint64 guid, LootType loottype)
|
||||
return;
|
||||
|
||||
Script->GOHello(player, gameObjTarget);
|
||||
sWorld.ScriptsStart(sGameObjectScripts, gameObjTarget->GetDBTableGUIDLow(), player, gameObjTarget);
|
||||
|
||||
gameObjTarget->AddUniqueUse(player);
|
||||
gameObjTarget->SetLootState(GO_JUST_DEACTIVATED);
|
||||
|
||||
@@ -2831,10 +2833,6 @@ void Spell::SendLoot(uint64 guid, LootType loottype)
|
||||
if(uint32 trapEntry = gameObjTarget->GetGOInfo()->goober.linkedTrapId)
|
||||
gameObjTarget->TriggeringLinkedGameObject(trapEntry,m_caster);
|
||||
|
||||
// activate GO scripts
|
||||
Script->GOHello(player, gameObjTarget);
|
||||
sWorld.ScriptsStart(sGameObjectScripts, gameObjTarget->GetDBTableGUIDLow(), player, gameObjTarget);
|
||||
|
||||
return;
|
||||
|
||||
case GAMEOBJECT_TYPE_CHEST:
|
||||
|
||||
Reference in New Issue
Block a user