diff options
| author | Kudlaty <none@none> | 2009-11-13 16:34:04 +0100 |
|---|---|---|
| committer | Kudlaty <none@none> | 2009-11-13 16:34:04 +0100 |
| commit | 3b4159e1e3364651f2712d47728538c96f824059 (patch) | |
| tree | c9ece5d0e917b8c946a55076720faeae0e887c8d /src/bindings/scripts | |
| parent | f04da1b620c3510cb9329d8efdb4efeebd83cf48 (diff) | |
Apply #212
New functions: void DoAddAuraToAllHostilePlayers & void DoCastToAllHostilePlayers
patch by Maanuel
--HG--
branch : trunk
Diffstat (limited to 'src/bindings/scripts')
| -rw-r--r-- | src/bindings/scripts/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/bindings/scripts/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp b/src/bindings/scripts/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp index 768e6520b92..caed800001f 100644 --- a/src/bindings/scripts/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp +++ b/src/bindings/scripts/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp @@ -302,16 +302,6 @@ struct TRINITY_DLL_DECL boss_sartharionAI : public ScriptedAI DoCast(m_creature, SPELL_WILL_OF_SARTHARION); } - void ApplyDebuff(uint32 spellPowerOf) - { - std::list<HostilReference*>& threatlist = m_creature->getThreatManager().getThreatList(); - for (std::list<HostilReference*>::iterator itr = threatlist.begin(); itr != threatlist.end(); ++itr) - if (Unit *target = Unit::GetUnit(*m_creature, (*itr)->getUnitGuid())) - if (target->GetTypeId() == TYPEID_PLAYER) - m_creature->AddAura(spellPowerOf, target); - } - - void CallDragon(uint32 uiDataId) { if (pInstance) @@ -332,17 +322,17 @@ struct TRINITY_DLL_DECL boss_sartharionAI : public ScriptedAI case NPC_TENEBRON: iTextId = SAY_SARTHARION_CALL_TENEBRON; pTemp->GetMotionMaster()->MovePoint(POINT_ID_LAND, m_aTene[1].m_fX, m_aTene[1].m_fY, m_aTene[1].m_fZ); - ApplyDebuff(SPELL_POWER_OF_TENEBRON); + DoAddAuraToAllHostilePlayers(SPELL_POWER_OF_TENEBRON); break; case NPC_SHADRON: iTextId = SAY_SARTHARION_CALL_SHADRON; pTemp->GetMotionMaster()->MovePoint(POINT_ID_LAND, m_aShad[1].m_fX, m_aShad[1].m_fY, m_aShad[1].m_fZ); - ApplyDebuff(SPELL_POWER_OF_SHADRON); + DoAddAuraToAllHostilePlayers(SPELL_POWER_OF_SHADRON); break; case NPC_VESPERON: iTextId = SAY_SARTHARION_CALL_VESPERON; pTemp->GetMotionMaster()->MovePoint(POINT_ID_LAND, m_aVesp[1].m_fX, m_aVesp[1].m_fY, m_aVesp[1].m_fZ); - ApplyDebuff(SPELL_POWER_OF_VESPERON); + DoAddAuraToAllHostilePlayers(SPELL_POWER_OF_VESPERON); break; } |
