Skip to content

Commit

Permalink
Merge pull request liyunfan1223#182 from liyunfan1223/item_score
Browse files Browse the repository at this point in the history
Score calculation for item spell
  • Loading branch information
liyunfan1223 authored Apr 13, 2024
2 parents 69ecee0 + 2b11f79 commit 044c098
Show file tree
Hide file tree
Showing 5 changed files with 449 additions and 70 deletions.
4 changes: 2 additions & 2 deletions src/PlayerbotAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
18 changes: 9 additions & 9 deletions src/PlayerbotAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,15 +329,15 @@ class PlayerbotAI : public PlayerbotAIBase
void ResetStrategies(bool load = false);
void ReInitCurrentEngine();
void Reset(bool full = false);
bool IsTank(Player* player);
bool IsHeal(Player* player);
bool IsDps(Player* player);
bool IsRanged(Player* player);
bool IsMelee(Player* player);
bool IsCaster(Player* player);
bool IsCombo(Player* player);
bool IsRangedDps(Player* player);
bool IsMainTank(Player* player);
static bool IsTank(Player* player);
static bool IsHeal(Player* player);
static bool IsDps(Player* player);
static bool IsRanged(Player* player);
static bool IsMelee(Player* player);
static bool IsCaster(Player* player);
static bool IsCombo(Player* player);
static bool IsRangedDps(Player* player);
static bool IsMainTank(Player* player);
bool IsAssistTank(Player* player);
bool IsAssistTankOfIndex(Player* player, int index);
bool IsHealAssistantOfIndex(Player* player, int index);
Expand Down
Loading

0 comments on commit 044c098

Please sign in to comment.