diff options
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r-- | src/game/SpellAuras.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 639f6a1e2e0..8867522e549 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1229,8 +1229,13 @@ bool Aura::modStackAmount(int32 num) return false; } -void Aura::SetAuraDuration(int32 duration) +void Aura::SetAuraDuration(int32 duration, bool withMods) { + if (withMods) + { + if (Player * modOwner = m_target->GetSpellModOwner()) + modOwner->ApplySpellMod(GetId(), SPELLMOD_DURATION, duration); + } m_duration = duration; //if (duration<0) //m_permanent=true; @@ -2483,6 +2488,13 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real, bool changeAmount) return; } + // Wrath of the Astromancer + if (GetId()==42783) + { + m_target->CastSpell(m_target,m_amount,true,NULL,this); + return; + } + switch(m_spellProto->SpellFamilyName) { case SPELLFAMILY_WARLOCK: |