Core/Skills: Use SkillLineAbility.dbc to determine player initial spells - skill assignment done in a new table playercreateinfo_skills
* Removed DK start skill hacks * Resolved missing skills in character skill tab Closes #12311
This commit is contained in:
1 parent
d4cec6b397
commit
2a3546ca36
13 files changed
+368
-175
No files matched your search
@@ -2834,12 +2834,10 @@ 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 and fist weapons)
|
||||
uint32 skill;
|
||||
if (item && item->GetSkill() != SKILL_FIST_WEAPONS)
|
||||
// weapon skill or (unarmed for base attack)
|
||||
uint32 skill = SKILL_UNARMED;
|
||||
if (item)
|
||||
skill = item->GetSkill();
|
||||
else
|
||||
skill = SKILL_UNARMED;
|
||||
|
||||
// in PvP use full skill instead current skill value
|
||||
value = (target && target->IsControlledByPlayer())
|
||||
@@ -15288,7 +15286,7 @@ void Unit::Kill(Unit* victim, bool durabilityLoss)
|
||||
group->SendLooter(creature, NULL);
|
||||
|
||||
// Update round robin looter only if the creature had loot
|
||||
if (!creature->loot.empty())
|
||||
if (!loot->empty())
|
||||
group->UpdateLooterGuid(creature);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user