Core/Units: Implemented UNIT_FLAG2_INTERACT_WHILE_HOSTILE

Port From (https://github.com/TrinityCore/TrinityCore/commit/58a5d485f81f5baa05db11da75756d59fb3c1194)
This commit is contained in:
hondacrx
2024-01-30 10:40:12 -05:00
parent 0b81750b42
commit 54244bb6cc
+1 -1
View File
@@ -5484,7 +5484,7 @@ namespace Game.Entities
return null;
// not unfriendly/hostile
if (creature.GetReactionTo(this) <= ReputationRank.Unfriendly)
if (!creature.HasUnitFlag2(UnitFlags2.InteractWhileHostile) && creature.GetReactionTo(this) <= ReputationRank.Unfriendly)
return null;
// not too far, taken from CGGameUI::SetInteractTarget