[9287] Prevent weapon skill grow at player's pet hit.

This commit is contained in:
VladimirMangos 2010-02-02 23:58:11 +03:00
parent af3aced775
commit 1f1f414d76
4 changed files with 11 additions and 2 deletions

View file

@ -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())