mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
*Fix a typo. Set owner in pvp when pet attacks other players.
--HG-- branch : trunk
This commit is contained in:
@@ -9767,7 +9767,7 @@ void Unit::CombatStart(Unit* target)
|
||||
target->SetInCombatWith(this);
|
||||
}
|
||||
|
||||
if(Player* attackedPlayer = target->GetCharmerOrOwnerPlayerOrPlayerItself())
|
||||
if(Player* attackedPlayer = GetCharmerOrOwnerPlayerOrPlayerItself())
|
||||
SetContestedPvP(attackedPlayer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user