mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 02:27:21 +00:00
[Bots] Cleanup Bot Spell Functions, reduce reliance on NPC Functions/Attributes (#2495)
* [Bots] Initial Cleanup of Functions, moved Bot Casting out of mob_ai.cpp * Moved Bots off NPC AI_Spells Struct, and AI_Spells private attribute. * Formatting Fixes, fixed LogAI entries, Added LogAIModerate Alias * Add Constants. * Added Bot DB Struct, fixed some potential casting issues * Formatting * Formatting
This commit is contained in:
1 parent
5708164511
commit
bf43bda1e2
11 files changed
+610
-122
No files matched your search
+2
-2
@@ -2138,11 +2138,11 @@ bool Merc::AICastSpell(int8 iChance, uint32 iSpellTypes) {
|
||||
}
|
||||
else {
|
||||
//check for heal over time. if not present, try it first
|
||||
if(!tar->FindType(SE_HealOverTime)) {
|
||||
if (!tar->FindType(SE_HealOverTime)) {
|
||||
selectedMercSpell = GetBestMercSpellForHealOverTime(this);
|
||||
|
||||
//get regular heal
|
||||
if(selectedMercSpell.spellid == 0) {
|
||||
if (selectedMercSpell.spellid == 0) {
|
||||
selectedMercSpell = GetBestMercSpellForRegularSingleTargetHeal(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user