mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Fix commit 1509 that made it unable to speak with neutral NPCs.
At the same time, it is still not possible to exploit with cheating tool. --HG-- branch : trunk
This commit is contained in:
@@ -97,7 +97,7 @@ ObjectAccessor::GetNPCIfCanInteractWith(Player const &player, uint64 guid, uint3
|
||||
if(!player.CanInteractWithNPCs(!unit->isSpiritService()))
|
||||
return NULL;
|
||||
|
||||
if(!player.IsFriendlyTo(unit))
|
||||
if(player.IsHostileTo(unit))
|
||||
return NULL;
|
||||
|
||||
// appropriate npc type
|
||||
|
||||
Reference in New Issue
Block a user