mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
Remove unnecessary checks in bot process (closescanmoving timer, verify raid, send hp/mana/end packet
This commit is contained in:
+13
-13
@@ -1637,10 +1637,10 @@ bool Bot::Process()
|
|||||||
entity_list.ScanCloseMobs(this);
|
entity_list.ScanCloseMobs(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_mob_check_moving_timer.Check()) { //TODO bot rewrite - is this necessary
|
//if (m_mob_check_moving_timer.Check()) { //TODO bot rewrite - is this necessary
|
||||||
CheckScanCloseMobsMovingTimer();
|
// CheckScanCloseMobsMovingTimer();
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
SpellProcess();
|
SpellProcess();
|
||||||
|
|
||||||
if (tic_timer.Check()) {
|
if (tic_timer.Check()) {
|
||||||
@@ -2065,19 +2065,20 @@ void Bot::AI_Process()
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto raid = entity_list.GetRaidByBot(this);
|
auto raid = entity_list.GetRaidByBot(this);
|
||||||
|
SetStoredRaid(raid);
|
||||||
uint32 r_group = RAID_GROUPLESS;
|
uint32 r_group = RAID_GROUPLESS;
|
||||||
|
|
||||||
if (raid) {
|
if (raid) {
|
||||||
raid->VerifyRaid();
|
//raid->VerifyRaid();
|
||||||
r_group = raid->GetGroup(GetName());
|
r_group = raid->GetGroup(GetName());
|
||||||
|
|
||||||
if (mana_timer.Check(false)) {
|
//if (mana_timer.Check(false)) {
|
||||||
raid->SendHPManaEndPacketsFrom(this);
|
// raid->SendHPManaEndPacketsFrom(this);
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
if (send_hp_update_timer.Check(false)) {
|
//if (send_hp_update_timer.Check(false)) {
|
||||||
raid->SendHPManaEndPacketsFrom(this);
|
// raid->SendHPManaEndPacketsFrom(this);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto bot_group = GetGroup();
|
auto bot_group = GetGroup();
|
||||||
@@ -2132,7 +2133,6 @@ void Bot::AI_Process()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetStoredRaid(raid);
|
|
||||||
std::vector<Mob*> spellTargetList = GatherSpellTargets(RuleB(Bots, CrossRaidBuffingAndHealing));
|
std::vector<Mob*> spellTargetList = GatherSpellTargets(RuleB(Bots, CrossRaidBuffingAndHealing));
|
||||||
SetSpellTargetList(spellTargetList);
|
SetSpellTargetList(spellTargetList);
|
||||||
std::vector<Mob*> groupSpellTargetList = GatherSpellTargets();
|
std::vector<Mob*> groupSpellTargetList = GatherSpellTargets();
|
||||||
|
|||||||
Reference in New Issue
Block a user