What bug does the patch fix? What features does the patch add?
This patch fixes two talents of mage class, Improved Blizzard and Improved Scorch
For which repository revision was the patch created?
most mangos-0.12 revs (probably master branch too, not tested)
Who has been writing this patch?
Casso
Improved Blizzard:
-------------------------- src/game/SpellEffects.cpp --------------------------
index 6f6f3d2..750ec71 100644
@@ -352,10 +352,21 @@ void Spell::EffectSchoolDMG(SpellEffectIndex effect_idx)
// Arcane Blast
if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x20000000))
{
m_caster->CastSpell(m_caster, 36032, true);
}
+
+ // Improved Blizzard talent
+ if (m_spellInfo->SpellFamilyFlags == UI64LIT(0x00080080) && m_spellInfo->SpellVisual == 9487 && m_caster->GetTypeId() == TYPEID_PLAYER)
+ {
+ if(m_caster->HasSpell(12488)) // Rank 3
+ m_caster->CastSpell(unitTarget,12486,true);
+ else if(m_caster->HasSpell(12487)) // Rank 2
+ m_caster->CastSpell(unitTarget,12485,true);
+ else if(m_caster->HasSpell(11185)) // Rank 1
+ m_caster->CastSpell(unitTarget,12484,true);
+ }
break;
}
case SPELLFAMILY_WARRIOR:
{
// Bloodthirst
Improved scorch:
-------------------------- src/game/SpellEffects.cpp --------------------------
index 750ec71..a730d77 100644
@@ -363,10 +363,25 @@ void Spell::EffectSchoolDMG(SpellEffectIndex effect_idx)
else if(m_caster->HasSpell(12487))
m_caster->CastSpell(unitTarget,12485,true);
else if(m_caster->HasSpell(11185))
m_caster->CastSpell(unitTarget,12484,true);
}
+
+ // Improved Scorch talent
+ if (m_spellInfo->SpellFamilyFlags == UI64LIT(0x00000010) && m_spellInfo->SpellIconID == 816 && m_caster->GetTypeId() == TYPEID_PLAYER)
+ {
+ if(m_caster->HasSpell(12873)) // Rank 3 - 100%
+ m_caster->CastSpell(unitTarget,22959,true);
+ else if(m_caster->HasSpell(12872)) // Rank 2 - 66%
+ {
+ if(urand(1,3) > 1)
+ m_caster->CastSpell(unitTarget,22959,true);
+ }
+ else if(m_caster->HasSpell(11095)) // Rank 1 - 33%
+ if(urand(1,3) > 2)
+ m_caster->CastSpell(unitTarget,22959,true);
+ }
break;
}
case SPELLFAMILY_WARRIOR:
{
// Bloodthirst