Merge pull request #8518 from ille/goreset

scripts/gameobject: correct reset of gameobjects (cages/prisons), move command out of if statement
This commit is contained in:
Nay committed 2012-12-27 18:50:35 -08:00
commit 7ccef51c8c
8 files changed
+19 -17

No files matched your search

+1 -1
View File
@@ -1398,12 +1398,12 @@ public:
bool OnGossipHello(Player* player, GameObject* go)
{
go->UseDoorOrButton();
if (player->GetQuestStatus(QUEST_OUR_ONLY_HOPE) == QUEST_STATUS_INCOMPLETE)
{
Creature* pGymerDummy = go->FindNearestCreature(NPC_GYMER_DUMMY, 20.0f);
if (pGymerDummy)
{
go->UseDoorOrButton();
player->KilledMonsterCredit(pGymerDummy->GetEntry(), pGymerDummy->GetGUID());
pGymerDummy->CastSpell(pGymerDummy, 55529, true);
pGymerDummy->DisappearAndDie();