From f5fa3b71cf398d321304c0712456e31ef880cb6b Mon Sep 17 00:00:00 2001 From: Blaymoira Date: Wed, 11 Feb 2009 16:33:07 +0100 Subject: *Some changes in Solarian - by Bagsac --HG-- branch : trunk --- src/game/SpellAuras.cpp | 6 ++++++ src/game/SpellEffects.cpp | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) (limited to 'src/game') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index c77e84b85f5..011c4dff324 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3697,6 +3697,12 @@ void Aura::HandlePeriodicTriggerSpell(bool apply, bool Real) // Cast Wrath of the Plaguebringer if not dispelled m_target->CastSpell(m_target, 29214, true, 0, this); } + + // Wrath of the Astromancer + if(!apply && m_spellProto->Id == 42783) + { + m_target->CastSpell(m_target, 42787, true, 0, this); + } } void Aura::HandlePeriodicEnergize(bool apply, bool Real) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 07e5d4afef9..681077939df 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -627,6 +627,28 @@ void Spell::EffectDummy(uint32 i) { switch(m_spellInfo->Id ) { + // Wrath of the Astromancer + case 42784: + { + uint32 count = 0; + for(std::list::iterator ihit= m_UniqueTargetInfo.begin();ihit != m_UniqueTargetInfo.end();++ihit) + if(ihit->effectMask & (1<::iterator ihit= m_UniqueTargetInfo.begin();ihit != m_UniqueTargetInfo.end();++ihit) + if(ihit->effectMask & (1<targetGUID); + if(casttarget) + m_caster->DealDamage(casttarget, damage, NULL, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_ARCANE, spellInfo, false); + } + } // Encapsulate Voidwalker case 29364: { -- cgit v1.2.3