mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 14:36:37 +00:00
raid optimizations
This commit is contained in:
@@ -506,7 +506,7 @@ void bot_command_cast(Client* c, const Seperator* sep)
|
||||
if (
|
||||
IsBotSpellTypeBeneficial(spellType) &&
|
||||
!RuleB(Bots, CrossRaidBuffingAndHealing) &&
|
||||
!bot_iter->IsInGroupOrRaid(newTar, true)
|
||||
!bot_iter->IsInGroupOrRaid(newTar, nullptr, true)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
@@ -588,7 +588,7 @@ void bot_command_cast(Client* c, const Seperator* sep)
|
||||
LogTestDebug("{}: {} says, 'Attempting {} [{}-{}] on [{}]'", __LINE__, bot_iter->GetCleanName(), c->GetSpellTypeNameByID(spellType), (subType != UINT16_MAX ? c->GetSubTypeNameByID(subType) : "Standard"), (subTargetType != UINT16_MAX ? c->GetSubTypeNameByID(subTargetType) : "Standard"), (newTar ? newTar->GetCleanName() : "NOBODY")); //deleteme
|
||||
bot_iter->SetCommandedSpell(true);
|
||||
|
||||
if (bot_iter->AICastSpell(newTar, 100, spellType, subTargetType, subType)) {
|
||||
if (bot_iter->AICastSpell(newTar, 100, spellType, nullptr, subTargetType, subType)) {
|
||||
if (!firstFound) {
|
||||
firstFound = bot_iter;
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ void bot_command_depart(Client* c, const Seperator* sep)
|
||||
std::map<std::string, std::pair<uint8_t, uint8_t>> listZones;
|
||||
|
||||
for (auto bot_iter : sbl) {
|
||||
if (!bot_iter->IsInGroupOrRaid(tar, !single)) {
|
||||
if (!bot_iter->IsInGroupOrRaid(tar, nullptr, !single)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user