mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
*Combine gobject::deleteobjectwithowner and delete
--HG-- branch : trunk
This commit is contained in:
@@ -206,7 +206,7 @@ struct TRINITY_DLL_DECL boss_sapphironAI : public BossAI
|
||||
if (Player* pPlayer = Unit::GetPlayer(itr->first))
|
||||
pPlayer->RemoveAura(SPELL_ICEBOLT);
|
||||
if (GameObject* pGo = GameObject::GetGameObject(*me, itr->second))
|
||||
pGo->DeleteObjectWithOwner();
|
||||
pGo->Delete();
|
||||
}
|
||||
iceblocks.clear();
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ bool GOHello_go_najentus_spine(Player* pPlayer, GameObject* pGo)
|
||||
if (CAST_AI(boss_najentusAI, Najentus->AI())->RemoveImpalingSpine())
|
||||
{
|
||||
pPlayer->CastSpell(pPlayer, SPELL_CREATE_NAJENTUS_SPINE, true);
|
||||
pGo->DeleteObjectWithOwner();
|
||||
pGo->Delete();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user