[8171] Restore work double damage chance for spell 35290 and ranks.

It has been broken at client switch and detected by spell_check data.
This commit is contained in:
VladimirMangos 2009-07-13 04:30:14 +04:00
parent fe1693a7da
commit d09615b2e5
3 changed files with 8 additions and 9 deletions

View file

@ -310,12 +310,6 @@ void Spell::EffectSchoolDMG(uint32 effect_idx)
{
case SPELLFAMILY_GENERIC:
{
//Gore
if (m_spellInfo->SpellIconID == 2269 )
{
damage+= rand()%2 ? damage : 0;
}
switch(m_spellInfo->Id) // better way to check unknown
{
// Meteor like spells (divided damage to targets)
@ -527,8 +521,13 @@ void Spell::EffectSchoolDMG(uint32 effect_idx)
}
case SPELLFAMILY_HUNTER:
{
//Gore
if (m_spellInfo->SpellIconID == 1578)
{
damage+= rand()%2 ? damage : 0;
}
// Mongoose Bite
if ((m_spellInfo->SpellFamilyFlags & UI64LIT(0x000000002)) && m_spellInfo->SpellVisual[0]==342)
else if ((m_spellInfo->SpellFamilyFlags & UI64LIT(0x000000002)) && m_spellInfo->SpellVisual[0]==342)
{
damage += int32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK)*0.2f);
}