mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
Merge branch 'master' into feature/global-base-scaling
This commit is contained in:
+11
-3
@@ -2611,7 +2611,16 @@ FACTION_VALUE NPC::CheckNPCFactionAlly(int32 other_faction) {
|
||||
return FACTION_INDIFFERENT;
|
||||
}
|
||||
}
|
||||
return FACTION_INDIFFERENT;
|
||||
|
||||
// I believe that the assumption is, barring no entry in npc_faction_entries
|
||||
// that two npcs on like faction con ally to each other. This catches cases
|
||||
// where an npc is on a faction but has no hits (hence no entry in
|
||||
// npc_faction_entries).
|
||||
|
||||
if (GetPrimaryFaction() == other_faction)
|
||||
return FACTION_ALLY;
|
||||
else
|
||||
return FACTION_INDIFFERENT;
|
||||
}
|
||||
|
||||
bool NPC::IsFactionListAlly(uint32 other_faction) {
|
||||
@@ -2801,7 +2810,6 @@ void NPC::ModifyStatsOnCharm(bool bRemoved)
|
||||
CalcAC();
|
||||
}
|
||||
|
||||
|
||||
uint16 NPC::GetMeleeTexture1() const
|
||||
{
|
||||
return d_melee_texture1;
|
||||
@@ -2840,4 +2848,4 @@ float NPC::GetProximityMinZ()
|
||||
float NPC::GetProximityMaxZ()
|
||||
{
|
||||
return proximity->max_z;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user