Browse Source

Update zoneserver.cpp

was out of date with local src wrong boolean on EngagedInCombat
Image 4 years ago
parent
commit
234ac02d0e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      EQ2/source/WorldServer/zoneserver.cpp

+ 2 - 1
EQ2/source/WorldServer/zoneserver.cpp

@@ -5802,7 +5802,8 @@ void ZoneServer::SendEpicMobDeathToGuild(Player* killer, Spawn* victim) {
 }
 
 void ZoneServer::ProcessAggroChecks(Spawn* spawn) {
-	if ( spawn->GetFactionID() < 1 || !spawn->EngagedInCombat())
+	if (spawn->GetFactionID() < 1 || spawn->EngagedInCombat())
+		return;
 	// If faction based combat is not allowed then no need to run the loops so just return out
 	if(!rule_manager.GetGlobalRule(R_Faction, AllowFactionBasedCombat)->GetBool())
 		return;