Core/Spells: Removed deprecated code, fixed duration bonus of the Glyph of Dancing Rune Weapon
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user