Core/Spells: Fixed Nevermelting Ice Crystal trinket
--HG-- branch : trunk
This commit is contained in:
@@ -5798,6 +5798,9 @@ void AuraEffect::HandleAuraDummy(AuraApplication const * aurApp, uint8 mode, boo
|
||||
caster->CastCustomSpell(28836, SPELLVALUE_BASE_POINT0, damage, target);
|
||||
}
|
||||
break;
|
||||
case 71563:
|
||||
if (Aura* newAura = target->AddAura(71564, target))
|
||||
newAura->SetStackAmount(newAura->GetSpellProto()->StackAmount);
|
||||
}
|
||||
}
|
||||
// AT REMOVE
|
||||
|
||||
@@ -3339,13 +3339,15 @@ void Spell::cast(bool skipCheck)
|
||||
if (m_customAttr & SPELL_ATTR_CU_LINK_CAST)
|
||||
{
|
||||
if (const std::vector<int32> *spell_triggered = sSpellMgr.GetSpellLinked(m_spellInfo->Id))
|
||||
{
|
||||
for (std::vector<int32>::const_iterator i = spell_triggered->begin(); i != spell_triggered->end(); ++i)
|
||||
if (*i < 0)
|
||||
m_caster->RemoveAurasDueToSpell(-(*i));
|
||||
else
|
||||
m_caster->CastSpell(m_targets.getUnitTarget() ? m_targets.getUnitTarget() : m_caster, *i, true);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||
m_caster->ToPlayer()->SetSpellModTakingSpell(this, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user