Core/Spells: Removed deprecated code, fixed duration bonus of the Glyph of Dancing Rune Weapon

This commit is contained in:
Subv
2012-02-09 15:27:12 -05:00
parent 800cf73750
commit 4ba341e892
+1 -7
View File
@@ -7142,13 +7142,7 @@ void Spell::SummonGuardian(uint32 i, uint32 entry, SummonPropertiesEntry const*
float radius = 5.0f; float radius = 5.0f;
int32 duration = m_spellInfo->GetDuration(); int32 duration = m_spellInfo->GetDuration();
switch (m_spellInfo->Id)
{
case 49028: // Dancing Rune Weapon
if (AuraEffect* aurEff = m_originalCaster->GetAuraEffect(63330, 0)) // glyph of Dancing Rune Weapon
duration += aurEff->GetAmount();
break;
}
if (Player* modOwner = m_originalCaster->GetSpellModOwner()) if (Player* modOwner = m_originalCaster->GetSpellModOwner())
modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_DURATION, duration); modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_DURATION, duration);