Move bot spdat functions to spdat_bot

This commit is contained in:
nytmyr
2025-01-21 13:13:30 -06:00
parent 37910cf3dc
commit 2301b91e77
9 changed files with 739 additions and 675 deletions
+2 -2
View File
@@ -9329,7 +9329,7 @@ bool Bot::PrecastChecks(Mob* tar, uint16 spell_type) {
return false;
}
if (IsPullingSpell() && IsPullingSpellType(spell_type)) { //Skip remaining checks for commanded
if (IsPullingSpell() && IsPullingBotSpellType(spell_type)) { //Skip remaining checks for commanded
return true;
}
@@ -9472,7 +9472,7 @@ bool Bot::CastChecks(uint16 spell_id, Mob* tar, uint16 spell_type, bool precheck
return false;
}
if (SpellTypeRequiresTarget(spell_type) && !tar) {
if (BotSpellTypeRequiresTarget(spell_type) && !tar) {
LogBotSpellChecksDetail("{} says, 'Cancelling cast due to CastChecks !tar.'", GetCleanName());
return false;
}