diff --git a/zone/bot.h b/zone/bot.h index a083ab21f..381b4de54 100644 --- a/zone/bot.h +++ b/zone/bot.h @@ -595,7 +595,7 @@ public: static std::list GetBotSpellsForSpellEffect(Bot* botCaster, uint16 spellType, int spellEffect); static std::list GetBotSpellsForSpellEffectAndTargetType(Bot* botCaster, uint16 spellType, int spellEffect, SpellTargetType targetType); static std::list GetBotSpellsBySpellType(Bot* botCaster, uint16 spellType); - static std::list GetPrioritizedBotSpellsBySpellType(Bot* botCaster, uint16 spellType, Mob* tar, bool AE = false, Raid* raid = nullptr, uint16 subTargetType = UINT16_MAX, uint16 subType = UINT16_MAX); + static std::vector GetPrioritizedBotSpellsBySpellType(Bot* botCaster, uint16 spellType, Mob* tar, bool AE = false, uint16 subTargetType = UINT16_MAX, uint16 subType = UINT16_MAX); static BotSpell GetFirstBotSpellBySpellType(Bot* botCaster, uint16 spellType); static BotSpell GetBestBotSpellForVeryFastHeal(Bot* botCaster, Mob* tar, uint16 spellType = BotSpellTypes::RegularHeal); diff --git a/zone/bot_commands/depart.cpp b/zone/bot_commands/depart.cpp index 6fb4fdb29..a78f89168 100644 --- a/zone/bot_commands/depart.cpp +++ b/zone/bot_commands/depart.cpp @@ -172,9 +172,9 @@ void bot_command_depart(Client* c, const Seperator* sep) continue; } - std::list botSpellListItr = bot_iter->GetPrioritizedBotSpellsBySpellType(bot_iter, BotSpellTypes::Teleport, tar); + std::vector botSpellListItr = bot_iter->GetPrioritizedBotSpellsBySpellType(bot_iter, BotSpellTypes::Teleport, tar); - for (std::list::iterator itr = botSpellListItr.begin(); itr != botSpellListItr.end(); ++itr) { + for (std::vector::iterator itr = botSpellListItr.begin(); itr != botSpellListItr.end(); ++itr) { if (!IsValidSpell(itr->SpellId)) { continue; }