本文整理汇总了C++中instance_sunwell_plateau::DoEjectSpectralPlayers方法的典型用法代码示例。如果您正苦于以下问题:C++ instance_sunwell_plateau::DoEjectSpectralPlayers方法的具体用法?C++ instance_sunwell_plateau::DoEjectSpectralPlayers怎么用?C++ instance_sunwell_plateau::DoEjectSpectralPlayers使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类instance_sunwell_plateau
的用法示例。
在下文中一共展示了instance_sunwell_plateau::DoEjectSpectralPlayers方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DamageTaken
void DamageTaken(Unit* /*pDoneBy*/, uint32& uiDamage, DamageEffectType /*damagetype*/) override
{
if (uiDamage > m_creature->GetHealth())
{
uiDamage = 0;
if (m_bIsBanished)
return;
// banish Sathrovarr and eject the players
if (DoCastSpellIfCan(m_creature, SPELL_BANISH, CAST_TRIGGERED) == CAST_OK)
m_bIsBanished = true;
if (!m_pInstance)
return;
if (Creature* pKalecgos = m_pInstance->GetSingleCreatureFromStorage(NPC_KALECGOS_DRAGON))
{
if (boss_kalecgosAI* pKalecgosAI = dynamic_cast<boss_kalecgosAI*>(pKalecgos->AI()))
pKalecgosAI->m_bIsUncorrupted = true;
}
m_pInstance->DoEjectSpectralPlayers();
}
}
示例2: JustDied
void JustDied(Unit* /*pKiller*/) override
{
if (m_pInstance)
{
m_pInstance->DoEjectSpectralPlayers();
m_pInstance->SetData(TYPE_KALECGOS, FAIL);
}
}
示例3: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
{
m_pInstance->DoEjectSpectralPlayers();
m_pInstance->SetData(TYPE_KALECGOS, FAIL);
}
}