Core/Spells: Properly fix talent Heart of the Crusader

This commit is contained in:
tobmaps
2011-05-12 04:04:31 +07:00
parent d44a842fc8
commit 922a174683
2 changed files with 5 additions and 16 deletions
@@ -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);
-16
View File
@@ -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;
} }
} }