From 0be7ead1d1cc61e1a08235e441e7567cb65d9d46 Mon Sep 17 00:00:00 2001 From: Aeadoin <109764533+Aeadoin@users.noreply.github.com> Date: Fri, 17 Mar 2023 19:07:54 -0400 Subject: [PATCH] [Bug Fix] Fix Bard Bot Casting (#3122) --- zone/botspellsai.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zone/botspellsai.cpp b/zone/botspellsai.cpp index 54dc97543..f5158fe35 100644 --- a/zone/botspellsai.cpp +++ b/zone/botspellsai.cpp @@ -114,7 +114,7 @@ bool Bot::BotCastSong(Mob* tar, uint8 botLevel) { continue; if (!CheckSpellRecastTimers(this, iter.SpellIndex)) continue; - if (spells[iter.SpellId].zone_type != zone->GetZoneType()) + if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType())) continue; switch (spells[iter.SpellId].target_type) { case ST_AEBard: @@ -148,7 +148,7 @@ bool Bot::BotCastCombatSong(Mob* tar, uint8 botLevel) { continue; if (!CheckSpellRecastTimers(this, iter.SpellIndex)) continue; - if (spells[iter.SpellId].zone_type != zone->GetZoneType()) + if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType())) continue; switch (spells[iter.SpellId].target_type) { case ST_AEBard: @@ -180,7 +180,7 @@ bool Bot::BotCastHateReduction(Mob* tar, uint8 botLevel, const BotSpell& botSpel continue; if (!CheckSpellRecastTimers(this, iter.SpellIndex)) continue; - if (spells[iter.SpellId].zone_type != zone->GetZoneType()) + if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType())) continue; if (spells[iter.SpellId].target_type != ST_Target) continue; @@ -320,7 +320,7 @@ bool Bot::BotCastSlow(Mob* tar, uint8 botLevel, uint8 botClass, BotSpell& botSpe continue; } - if (spells[iter.SpellId].zone_type != zone->GetZoneType()) { + if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType())) { continue; }