Core/Spells: Properly fix talent Heart of the Crusader
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
DELETE FROM `spell_proc_event` WHERE `entry` IN (20335,20336,20337);
|
||||||
|
INSERT INTO `spell_proc_event` VALUES
|
||||||
|
(20335,0x00,10,0x00800000,0x00000000,0x00000008,0x00000100,0x00000000,0.000000,100.000000,0),
|
||||||
|
(20336,0x00,10,0x00800000,0x00000000,0x00000008,0x00000100,0x00000000,0.000000,100.000000,0),
|
||||||
|
(20337,0x00,10,0x00800000,0x00000000,0x00000008,0x00000100,0x00000000,0.000000,100.000000,0);
|
||||||
@@ -5250,7 +5250,6 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
|||||||
return;
|
return;
|
||||||
uint32 spellId1 = 0;
|
uint32 spellId1 = 0;
|
||||||
uint32 spellId2 = 0;
|
uint32 spellId2 = 0;
|
||||||
uint32 spellId3 = 0;
|
|
||||||
|
|
||||||
// Judgement self add switch
|
// Judgement self add switch
|
||||||
switch (m_spellInfo->Id)
|
switch (m_spellInfo->Id)
|
||||||
@@ -5267,19 +5266,6 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
|||||||
Unit::AuraApplicationMap & sealAuras = m_caster->GetAppliedAuras();
|
Unit::AuraApplicationMap & sealAuras = m_caster->GetAppliedAuras();
|
||||||
for (Unit::AuraApplicationMap::iterator iter = sealAuras.begin(); iter != sealAuras.end();)
|
for (Unit::AuraApplicationMap::iterator iter = sealAuras.begin(); iter != sealAuras.end();)
|
||||||
{
|
{
|
||||||
switch (iter->first)
|
|
||||||
{
|
|
||||||
// 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;
|
|
||||||
}
|
|
||||||
Aura * aura = iter->second->GetBase();
|
Aura * aura = iter->second->GetBase();
|
||||||
if (IsSealSpell(aura->GetSpellProto()))
|
if (IsSealSpell(aura->GetSpellProto()))
|
||||||
{
|
{
|
||||||
@@ -5310,8 +5296,6 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
|||||||
m_caster->CastSpell(unitTarget, spellId1, true);
|
m_caster->CastSpell(unitTarget, spellId1, true);
|
||||||
if (spellId2)
|
if (spellId2)
|
||||||
m_caster->CastSpell(unitTarget, spellId2, true);
|
m_caster->CastSpell(unitTarget, spellId2, true);
|
||||||
if (spellId3)
|
|
||||||
m_caster->CastSpell(unitTarget, spellId3, true);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user