diff --git a/playerbot/strategy/actions/CheckValuesAction.cpp b/playerbot/strategy/actions/CheckValuesAction.cpp index 36257b6a..5a992ad2 100644 --- a/playerbot/strategy/actions/CheckValuesAction.cpp +++ b/playerbot/strategy/actions/CheckValuesAction.cpp @@ -39,31 +39,4 @@ bool CheckValuesAction::Execute(Event& event) std::list nfp = AI_VALUE(std::list, "nearest friendly players"); return true; - - if (ai->HasStrategy("nowar", BotState::BOT_STATE_NON_COMBAT)) - { - ReputationMgr& mgr = bot->GetReputationMgr(); - for (auto & faction : mgr.GetStateList()) - { - uint32 factionId = faction.second.ID; - uint32 replistId = faction.first; - -#ifndef MANGOSBOT_ONE - const FactionEntry* thisFactionEntry = sFactionStore.LookupEntry(factionId); -#else - const FactionEntry* thisFactionEntry = sFactionStore.LookupEntry(factionId); -#endif - - if (!mgr.IsAtWar(factionId)) - continue; - - if (!thisFactionEntry) - continue; - - if (bot->GetReputationMgr().GetRank(thisFactionEntry) > REP_HATED) - bot->GetReputationMgr().SetAtWar(replistId, false); - } - } - - return true; }