Fix Kill Shot damage (increase damage by attack power, not weapon damage ( that is already included in effects))

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2010-01-13 09:54:03 +01:00
parent a3e66287bf
commit ecd9470dc8
+2 -5
View File
@@ -4576,12 +4576,9 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
} }
case SPELLFAMILY_HUNTER: case SPELLFAMILY_HUNTER:
{ {
// Kill Shot // Kill Shot - bonus damage from Ranged Attack Power
if(m_spellInfo->SpellFamilyFlags[1] & 0x800000) if(m_spellInfo->SpellFamilyFlags[1] & 0x800000)
{ spell_bonus += int32(0.4f*m_caster->GetTotalAttackPowerValue(RANGED_ATTACK, unitTarget));
// Increase Weapon Damage by 200% (or Weapon Damage + Weapon Damage)
spell_bonus += m_caster->CalculateDamage(RANGED_ATTACK, false, true);
}
break; break;
} }
case SPELLFAMILY_DEATHKNIGHT: case SPELLFAMILY_DEATHKNIGHT: