mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Combat: Improve sanctuary combat stop (#24266)
Stop combat when a Player moves to a Sanctuary area only if there is any PvP combat (it would be nice to keep PvE combat but that's still an issue)
This commit is contained in:
@@ -7027,7 +7027,7 @@ void Player::UpdateArea(uint32 newArea)
|
||||
{
|
||||
SetByteFlag(UNIT_FIELD_BYTES_2, UNIT_BYTES_2_OFFSET_PVP_FLAG, UNIT_BYTE2_FLAG_SANCTUARY);
|
||||
pvpInfo.IsInNoPvPArea = true;
|
||||
if (!duel)
|
||||
if (!duel && GetCombatManager().HasPvPCombat())
|
||||
CombatStopWithPets();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user