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:
Trazom62 committed 2010-04-11 23:49:00 +02:00
1 parent e2ed15655b
commit d9367da5f2
2 files changed
+3 -11

No files matched your search

-7
View File
@@ -3346,13 +3346,6 @@ void Spell::SendLoot(uint64 guid, LootType loottype)
return;
case GAMEOBJECT_TYPE_GOOBER:
// goober_scripts can be triggered if the player don't have the quest
if (gameObjTarget->GetGOInfo()->goober.eventId)
{
sLog.outDebug("Goober ScriptStart id %u for GO %u",gameObjTarget->GetGOInfo()->goober.eventId,gameObjTarget->GetDBTableGUIDLow());
player->GetMap()->ScriptsStart(sEventScripts, gameObjTarget->GetGOInfo()->goober.eventId, player, gameObjTarget);
gameObjTarget->EventInform(gameObjTarget->GetGOInfo()->goober.eventId);
}
gameObjTarget->Use(m_caster);
return;