aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorp0wer <none@none>2009-12-20 17:25:10 -0600
committerp0wer <none@none>2009-12-20 17:25:10 -0600
commit6c718a9ef7cd33a54abbac40aed39400324c6a2b (patch)
tree615e945a1f98611eac6400dcfecd0de1a82efed2
parent8a560ca408918f8e8d10e8e52722e182aa07697f (diff)
Fix Kill Shot. Patch partially by bodompelle. Closes #357.
Adds a second copy of weapon damage to total damage. (Same as multiplying damage by 200%) Spell's aura type isn't currently implemented into core, so fix isn't permanent. --HG-- branch : trunk
-rw-r--r--src/game/SpellEffects.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index c738fcc13ef..29bc42b922e 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -4606,6 +4606,16 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
}
break;
}
+ case SPELLFAMILY_HUNTER:
+ {
+ // Kill Shot
+ 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);
+ }
+ break;
+ }
case SPELLFAMILY_DEATHKNIGHT:
{
// Plague Strike