*Heart of the Crusader now works, thanks lobuz
*Little bit of cleanup --HG-- branch : trunk
This commit is contained in:
@@ -4461,7 +4461,6 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!spellInfo)
|
||||
{
|
||||
// get highest rank of the Sunder Armor spell
|
||||
@@ -5861,6 +5860,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
||||
return;
|
||||
uint32 spellId1 = 0;
|
||||
uint32 spellId2 = 0;
|
||||
uint32 spellId3 = 0;
|
||||
|
||||
// Judgement self add switch
|
||||
switch (m_spellInfo->Id)
|
||||
@@ -5877,6 +5877,20 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
||||
Unit::AuraMap & sealAuras = m_caster->GetAuras();
|
||||
for (Unit::AuraMap::iterator iter = sealAuras.begin(); iter != sealAuras.end();)
|
||||
{
|
||||
switch (iter->second->GetId())
|
||||
{
|
||||
// Heart of the Crusader
|
||||
case 20335: // Rank 1
|
||||
spellId3 = 21183;
|
||||
break;
|
||||
case 20336: // Rank 2
|
||||
spellId3 = 54498;
|
||||
break;
|
||||
case 20337: // Rank 3
|
||||
spellId3 = 54499;
|
||||
break;
|
||||
}
|
||||
|
||||
if (IsSealSpell(iter->second->GetSpellProto()))
|
||||
{
|
||||
if (AuraEffect * aureff = iter->second->GetPartAura(2))
|
||||
@@ -5906,6 +5920,8 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
||||
m_caster->CastSpell(unitTarget, spellId1, true);
|
||||
if (spellId2)
|
||||
m_caster->CastSpell(unitTarget, spellId2, true);
|
||||
if (spellId3)
|
||||
m_caster->CastSpell(unitTarget, spellId3, true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user