*Fix a typo. Set owner in pvp when pet attacks other players.
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -9767,7 +9767,7 @@ void Unit::CombatStart(Unit* target)
|
|||||||
target->SetInCombatWith(this);
|
target->SetInCombatWith(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Player* attackedPlayer = target->GetCharmerOrOwnerPlayerOrPlayerItself())
|
if(Player* attackedPlayer = GetCharmerOrOwnerPlayerOrPlayerItself())
|
||||||
SetContestedPvP(attackedPlayer);
|
SetContestedPvP(attackedPlayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user