mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
fix(Core/Player): Weapon skill gain (#5961)
This commit is contained in:
@@ -15518,7 +15518,12 @@ void Unit::ProcDamageAndSpellFor(bool isVictim, Unit* target, uint32 procFlag, u
|
||||
return;
|
||||
|
||||
// Update skills here for players
|
||||
if (GetTypeId() == TYPEID_PLAYER)
|
||||
// only when you are not fighting other players or their pets/totems (pvp)
|
||||
if (GetTypeId() == TYPEID_PLAYER &&
|
||||
target->GetTypeId() != TYPEID_PLAYER &&
|
||||
!(target->IsTotem() && target->ToTotem()->GetOwner()->IsPlayer()) &&
|
||||
!target->IsPet()
|
||||
)
|
||||
{
|
||||
// On melee based hit/miss/resist need update skill (for victim and attacker)
|
||||
if (procExtra & (PROC_EX_NORMAL_HIT | PROC_EX_MISS | PROC_EX_RESIST))
|
||||
|
||||
Reference in New Issue
Block a user