aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-04 10:25:28 -0600
committermegamage <none@none>2009-02-04 10:25:28 -0600
commitedbfb386ce87f918da8e11e843d7b5a227e5328d (patch)
tree521c454182fcd43f4b2b4686a29f8d9d478af875 /src/game/Unit.cpp
parent18cbc94dd403e85da69068e61b5b90829fbb3a0a (diff)
*Do not check range weapon skills for paladin. This fix the bug that flying hammer miss too much.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index db777fe757f..d46b4180b64 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -149,7 +149,7 @@ bool IsPassiveStackableSpell( uint32 spellId )
Unit::Unit()
: WorldObject(), i_motionMaster(this), m_ThreatManager(this), m_HostilRefManager(this)
-, m_IsInNotifyList(false), m_Notified(false)
+, m_IsInNotifyList(false), m_Notified(false), m_AI_enabled(false)
{
m_objectType |= TYPEMASK_UNIT;
m_objectTypeId = TYPEID_UNIT;
@@ -3576,7 +3576,11 @@ uint32 Unit::GetWeaponSkillValue (WeaponAttackType attType, Unit const* target)
// feral or unarmed skill only for base attack
if(attType != BASE_ATTACK && !item )
+ {
+ if(attType == RANGED_ATTACK && getClass() == CLASS_PALADIN) //hammer
+ return GetMaxSkillValueForLevel();
return 0;
+ }
if(((Player*)this)->IsInFeralForm())
return GetMaxSkillValueForLevel(); // always maximized SKILL_FERAL_COMBAT in fact