mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[9287] Prevent weapon skill grow at player's pet hit.
This commit is contained in:
parent
af3aced775
commit
1f1f414d76
4 changed files with 11 additions and 2 deletions
|
|
@ -5266,7 +5266,7 @@ void Player::UpdateWeaponSkill (WeaponAttackType attType)
|
|||
{
|
||||
// no skill gain in pvp
|
||||
Unit *pVictim = getVictim();
|
||||
if(pVictim && pVictim->GetTypeId() == TYPEID_PLAYER)
|
||||
if(pVictim && pVictim->IsCharmerOrOwnerPlayerOrPlayerItself())
|
||||
return;
|
||||
|
||||
if(IsInFeralForm())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue