From 25ff56ca2352398cd5cc4ecc64ce4791dbb67431 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Mon, 23 Dec 2024 23:28:49 -0600 Subject: [PATCH] Remove unnecessary checks in bot process (closescanmoving timer, verify raid, send hp/mana/end packet --- zone/bot.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 5d9da0727..46d762ad1 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -1637,10 +1637,10 @@ bool Bot::Process() entity_list.ScanCloseMobs(this); } - if (m_mob_check_moving_timer.Check()) { //TODO bot rewrite - is this necessary - CheckScanCloseMobsMovingTimer(); - } - + //if (m_mob_check_moving_timer.Check()) { //TODO bot rewrite - is this necessary + // CheckScanCloseMobsMovingTimer(); + //} + // SpellProcess(); if (tic_timer.Check()) { @@ -2065,19 +2065,20 @@ void Bot::AI_Process() } auto raid = entity_list.GetRaidByBot(this); + SetStoredRaid(raid); uint32 r_group = RAID_GROUPLESS; if (raid) { - raid->VerifyRaid(); + //raid->VerifyRaid(); r_group = raid->GetGroup(GetName()); - - if (mana_timer.Check(false)) { - raid->SendHPManaEndPacketsFrom(this); - } - - if (send_hp_update_timer.Check(false)) { - raid->SendHPManaEndPacketsFrom(this); - } + + //if (mana_timer.Check(false)) { + // raid->SendHPManaEndPacketsFrom(this); + //} + // + //if (send_hp_update_timer.Check(false)) { + // raid->SendHPManaEndPacketsFrom(this); + //} } auto bot_group = GetGroup(); @@ -2132,7 +2133,6 @@ void Bot::AI_Process() return; } - SetStoredRaid(raid); std::vector spellTargetList = GatherSpellTargets(RuleB(Bots, CrossRaidBuffingAndHealing)); SetSpellTargetList(spellTargetList); std::vector groupSpellTargetList = GatherSpellTargets();