Score calculation for item spell

This commit is contained in:
Yunfan Li
2024-04-13 14:42:07 +08:00
parent 69ecee0efe
commit 2b11f791f2
5 changed files with 449 additions and 70 deletions

View File

@@ -1604,7 +1604,7 @@ bool PlayerbotAI::IsTank(Player* player)
}
break;
case CLASS_DRUID:
if (tab == DRUID_TAB_FERAL && HasAnyAuraOf(player, "bear form", "dire bear form", "thick hide", NULL)) {
if (tab == DRUID_TAB_FERAL && (player->GetShapeshiftForm() == FORM_BEAR || player->GetShapeshiftForm() == FORM_DIREBEAR || player->HasAura(16931))) {
return true;
}
break;
@@ -1695,7 +1695,7 @@ bool PlayerbotAI::IsDps(Player* player)
bool PlayerbotAI::IsMainTank(Player* player)
{
Group* group = bot->GetGroup();
Group* group = player->GetGroup();
if (!group) {
return false;
}