*Fix fist weapons crit chance, found by SyRiOCoP, fixes #27

--HG--
branch : trunk
This commit is contained in:
maximius
2009-11-04 18:41:38 -08:00
parent 2adb1b8d4c
commit 0975d50207
+2 -2
View File
@@ -3155,8 +3155,8 @@ uint32 Unit::GetWeaponSkillValue (WeaponAttackType attType, Unit const* target)
if (IsInFeralForm())
return GetMaxSkillValueForLevel(); // always maximized SKILL_FERAL_COMBAT in fact
// weapon skill or (unarmed for base attack)
uint32 skill = item ? item->GetSkill() : SKILL_UNARMED;
// weapon skill or (unarmed for base attack and fist weapons)
uint32 skill = item && item->GetSkill() != SKILL_FIST_WEAPONS ? item->GetSkill() : SKILL_UNARMED;
// in PvP use full skill instead current skill value
value = (target && target->IsControlledByPlayer())