From 1efdaa89601f5b617b6abfc8b023ccac8e915ff6 Mon Sep 17 00:00:00 2001 From: raczman Date: Sun, 24 May 2009 20:57:59 +0200 Subject: 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 --- src/game/ObjectAccessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/ObjectAccessor.cpp b/src/game/ObjectAccessor.cpp index 5be6258b1fd..6f0fd2af1f2 100644 --- a/src/game/ObjectAccessor.cpp +++ b/src/game/ObjectAccessor.cpp @@ -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 -- cgit v1.2.3