aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraczman <none@none>2009-05-24 20:57:59 +0200
committerraczman <none@none>2009-05-24 20:57:59 +0200
commit1efdaa89601f5b617b6abfc8b023ccac8e915ff6 (patch)
treeb28a95286d6c9c79acf66cc6e39b1ec6d75ca5ba
parent9f5f0159f808c52443331c0dfd8cb53779184c9a (diff)
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
-rw-r--r--src/game/ObjectAccessor.cpp2
1 files changed, 1 insertions, 1 deletions
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