mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
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:
@@ -4576,12 +4576,9 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
|
||||
}
|
||||
case SPELLFAMILY_HUNTER:
|
||||
{
|
||||
// Kill Shot
|
||||
// Kill Shot - bonus damage from Ranged Attack Power
|
||||
if(m_spellInfo->SpellFamilyFlags[1] & 0x800000)
|
||||
{
|
||||
// Increase Weapon Damage by 200% (or Weapon Damage + Weapon Damage)
|
||||
spell_bonus += m_caster->CalculateDamage(RANGED_ATTACK, false, true);
|
||||
}
|
||||
spell_bonus += int32(0.4f*m_caster->GetTotalAttackPowerValue(RANGED_ATTACK, unitTarget));
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_DEATHKNIGHT:
|
||||
|
||||
Reference in New Issue
Block a user