Drak'Tharon Keep, Novos the Summoner: Despawn adds on reset/die
--HG-- branch : trunk
This commit is contained in:
@@ -82,7 +82,7 @@ static Location AddDestinyPoint = { -382.169, -711.369, 27.375};
|
|||||||
|
|
||||||
struct TRINITY_DLL_DECL boss_novosAI : public Scripted_NoMovementAI
|
struct TRINITY_DLL_DECL boss_novosAI : public Scripted_NoMovementAI
|
||||||
{
|
{
|
||||||
boss_novosAI(Creature *c) : Scripted_NoMovementAI(c)
|
boss_novosAI(Creature *c) : Scripted_NoMovementAI(c), lSummons(me)
|
||||||
{
|
{
|
||||||
pInstance = c->GetInstanceData();
|
pInstance = c->GetInstanceData();
|
||||||
Reset();
|
Reset();
|
||||||
@@ -93,6 +93,8 @@ struct TRINITY_DLL_DECL boss_novosAI : public Scripted_NoMovementAI
|
|||||||
|
|
||||||
bool bAchiev;
|
bool bAchiev;
|
||||||
|
|
||||||
|
SummonList lSummons;
|
||||||
|
|
||||||
std::list<uint64> luiCrystals;
|
std::list<uint64> luiCrystals;
|
||||||
|
|
||||||
CombatPhase Phase;
|
CombatPhase Phase;
|
||||||
@@ -105,6 +107,7 @@ struct TRINITY_DLL_DECL boss_novosAI : public Scripted_NoMovementAI
|
|||||||
luiCrystals.clear();
|
luiCrystals.clear();
|
||||||
bAchiev = true;
|
bAchiev = true;
|
||||||
m_creature->CastStop();
|
m_creature->CastStop();
|
||||||
|
lSummons.DespawnAll();
|
||||||
if (pInstance)
|
if (pInstance)
|
||||||
{
|
{
|
||||||
pInstance->SetData(DATA_NOVOS_EVENT, NOT_STARTED);
|
pInstance->SetData(DATA_NOVOS_EVENT, NOT_STARTED);
|
||||||
@@ -182,6 +185,7 @@ struct TRINITY_DLL_DECL boss_novosAI : public Scripted_NoMovementAI
|
|||||||
if (HeroicMode && bAchiev)
|
if (HeroicMode && bAchiev)
|
||||||
pInstance->DoCompleteAchievement(ACHIEV_OH_NOVOS);
|
pInstance->DoCompleteAchievement(ACHIEV_OH_NOVOS);
|
||||||
}
|
}
|
||||||
|
lSummons.DespawnAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
void KilledUnit(Unit *victim)
|
void KilledUnit(Unit *victim)
|
||||||
@@ -191,6 +195,11 @@ struct TRINITY_DLL_DECL boss_novosAI : public Scripted_NoMovementAI
|
|||||||
DoScriptText(SAY_KILL, m_creature);
|
DoScriptText(SAY_KILL, m_creature);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void JustSummoned(Creature *summon)
|
||||||
|
{
|
||||||
|
lSummons.Summon(summon);
|
||||||
|
}
|
||||||
|
|
||||||
void RemoveCrystal()
|
void RemoveCrystal()
|
||||||
{
|
{
|
||||||
if (!luiCrystals.empty())
|
if (!luiCrystals.empty())
|
||||||
|
|||||||
Reference in New Issue
Block a user