Rogue stealth spell & Target selection for combo class

This commit is contained in:
Yunfan Li
2024-02-10 22:03:33 +08:00
parent 4091ba3e5a
commit f09d8d72f4
5 changed files with 119 additions and 42 deletions

View File

@@ -1378,6 +1378,13 @@ bool PlayerbotAI::IsCaster(Player* player)
return IsRanged(player) && player->getClass() != CLASS_HUNTER;
}
bool PlayerbotAI::IsCombo(Player* player)
{
int tab = AiFactory::GetPlayerSpecTab(player);
return player->getClass() == CLASS_ROGUE ||
(player->getClass() == CLASS_DRUID && tab == DRUID_TAB_FERAL && !IsTank(bot));
}
bool PlayerbotAI::IsRangedDps(Player* player)
{
return IsRanged(player) && IsDps(player);