mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Fix script started twice for Gobber (GO type=10) with eventID.
Fixes issue #1589. With help of Az@zel, thanks. --HG-- branch : trunk
This commit is contained in:
@@ -1137,6 +1137,7 @@ void GameObject::Use(Unit* user)
|
||||
{
|
||||
sLog.outDebug("Goober ScriptStart id %u for GO entry %u (GUID %u).", info->goober.eventId, GetEntry(), GetDBTableGUIDLow());
|
||||
GetMap()->ScriptsStart(sEventScripts, info->goober.eventId, player, this);
|
||||
EventInform(info->goober.eventId);
|
||||
}
|
||||
|
||||
// possible quest objective for active quests
|
||||
@@ -1147,10 +1148,8 @@ void GameObject::Use(Unit* user)
|
||||
break;
|
||||
}
|
||||
|
||||
if (BattleGround* bg = player->GetBattleGround())
|
||||
{
|
||||
bg->EventPlayerUsedGO(player, this);
|
||||
}
|
||||
if (BattleGround* bg = player->GetBattleGround())
|
||||
bg->EventPlayerUsedGO(player, this);
|
||||
|
||||
player->CastedCreatureOrGO(info->id, GetGUID(), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user