mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
[Bot] Update Bot Logic to ignore ST_TargetsTarget when buffing (#2584)
* [Bot] Update Bot Logic to ignore ST_TargetsTarget when buffing * Fix Not Operator * Update botspellsai.cpp Co-authored-by: Alex King <89047260+Kinglykrab@users.noreply.github.com>
This commit is contained in:
parent
fb4d4e1382
commit
f6c5560e9c
@ -371,12 +371,21 @@ bool Bot::AICastSpell(Mob* tar, uint8 iChance, uint32 iSpellTypes) {
|
||||
continue;
|
||||
}
|
||||
// Validate target
|
||||
|
||||
if (!((spells[selectedBotSpell.SpellId].target_type == ST_Target || spells[selectedBotSpell.SpellId].target_type == ST_Pet || tar == this ||
|
||||
spells[selectedBotSpell.SpellId].target_type == ST_Group || spells[selectedBotSpell.SpellId].target_type == ST_GroupTeleport ||
|
||||
(botClass == BARD && spells[selectedBotSpell.SpellId].target_type == ST_AEBard))
|
||||
&& !tar->IsImmuneToSpell(selectedBotSpell.SpellId, this)
|
||||
&& (tar->CanBuffStack(selectedBotSpell.SpellId, botLevel, true) >= 0))) {
|
||||
// TODO: Add ST_TargetsTarget support for Buffing.
|
||||
if (
|
||||
!(
|
||||
(
|
||||
spells[selectedBotSpell.SpellId].target_type == ST_Target ||
|
||||
spells[selectedBotSpell.SpellId].target_type == ST_Pet ||
|
||||
(tar == this && spells[selectedBotSpell.SpellId].target_type != ST_TargetsTarget) ||
|
||||
spells[selectedBotSpell.SpellId].target_type == ST_Group ||
|
||||
spells[selectedBotSpell.SpellId].target_type == ST_GroupTeleport ||
|
||||
(botClass == BARD && spells[selectedBotSpell.SpellId].target_type == ST_AEBard)
|
||||
) &&
|
||||
!tar->IsImmuneToSpell(selectedBotSpell.SpellId, this) &&
|
||||
tar->CanBuffStack(selectedBotSpell.SpellId, botLevel, true) >= 0
|
||||
)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user