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:
raczman
2009-05-24 20:57:59 +02:00
parent 9f5f0159f8
commit 1efdaa8960

View File

@@ -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