Merge commit '6390e6a4cc2d657e7fa49e80c5be32007df56ee1' into 4.3.4
Conflicts: sql/updates/world/2014_12_30_00_world.sql sql/updates/world/2014_12_30_01_world.sql src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp
This commit is contained in:
commit
b9c871fdb7
6 files changed
+284
-172
No files matched your search
@@ -2847,17 +2847,10 @@ Creature* Player::GetNPCIfCanInteractWith(ObjectGuid guid, uint32 npcflagmask)
|
||||
if (creature->GetCharmerGUID())
|
||||
return NULL;
|
||||
|
||||
// not enemy
|
||||
if (creature->IsHostileTo(this))
|
||||
// not unfriendly/hostile
|
||||
if (creature->GetReactionTo(this) <= REP_UNFRIENDLY)
|
||||
return NULL;
|
||||
|
||||
// not unfriendly
|
||||
if (FactionTemplateEntry const* factionTemplate = sFactionTemplateStore.LookupEntry(creature->getFaction()))
|
||||
if (factionTemplate->faction)
|
||||
if (FactionEntry const* faction = sFactionStore.LookupEntry(factionTemplate->faction))
|
||||
if (faction->reputationListID >= 0 && GetReputationMgr().GetRank(faction) <= REP_UNFRIENDLY)
|
||||
return NULL;
|
||||
|
||||
// not too far
|
||||
if (!creature->IsWithinDistInMap(this, INTERACTION_DISTANCE))
|
||||
return NULL;
|
||||
|
||||
Reference in new issue
Block a user