bool PlayerbotAI::IsHeal(Player* player) { PlayerbotAI* botAi = player->GetPlayerbotAI(); if (botAi) return botAi->ContainsStrategy(STRATEGY_TYPE_HEAL); switch (player->getClass()) { case CLASS_PRIEST: return true; case CLASS_DRUID: return HasAnyAuraOf(player, "tree of life form", NULL); } return false; }
bool PlayerbotAI::IsTank(Player* player) { PlayerbotAI* botAi = player->GetPlayerbotAI(); if (botAi) return botAi->ContainsStrategy(STRATEGY_TYPE_TANK); switch (player->getClass()) { //case CLASS_DEATH_KNIGHT: case CLASS_PALADIN: case CLASS_WARRIOR: return true; case CLASS_DRUID: return HasAnyAuraOf(player, "bear form", "dire bear form", NULL); } return false; }