Core/Units: Implemented UNIT_FLAG2_INTERACT_WHILE_HOSTILE
Port From (https://github.com/TrinityCore/TrinityCore/commit/58a5d485f81f5baa05db11da75756d59fb3c1194)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user