This commit is contained in:
Yunfan Li
2023-05-30 17:09:25 +08:00
parent 167509c83d
commit edc93ca124
3 changed files with 7 additions and 4 deletions

View File

@@ -353,13 +353,13 @@ void AiFactory::AddDefaultCombatStrategies(Player* player, PlayerbotAI* const fa
break; break;
case CLASS_DEATH_KNIGHT: case CLASS_DEATH_KNIGHT:
if (tab == 0) if (tab == 0)
engine->addStrategies("blood", nullptr); engine->addStrategies("blood", "tank assist", nullptr);
else if (tab == 1) else if (tab == 1)
engine->addStrategies("frost", "frost aoe", "dps assist", "threat", nullptr); engine->addStrategies("frost", "frost aoe", "dps assist", "threat", nullptr);
else else
engine->addStrategies("unholy", "unholy aoe", "dps assist", "threat", nullptr); engine->addStrategies("unholy", "unholy aoe", "dps assist", "threat", nullptr);
engine->addStrategies("dps assist", "close", nullptr); engine->addStrategies("close", nullptr);
break; break;
} }

View File

@@ -3002,7 +3002,7 @@ float PlayerbotFactory::CalculateItemScore(uint32 item_id)
// spec without double hand // spec without double hand
// enhancement, rogue, ice dk, shield tank // enhancement, rogue, ice dk, shield tank
if (isDoubleHand && if (isDoubleHand &&
((cls == CLASS_SHAMAN && tab == 1) || ((cls == CLASS_SHAMAN && tab == 1 && bot->HasSpell(674)) ||
(cls == CLASS_ROGUE) || (cls == CLASS_ROGUE) ||
(cls == CLASS_DEATH_KNIGHT && tab == 1) || (cls == CLASS_DEATH_KNIGHT && tab == 1) ||
IsShieldTank())) { IsShieldTank())) {
@@ -3014,7 +3014,8 @@ float PlayerbotFactory::CalculateItemScore(uint32 item_id)
((cls == CLASS_WARRIOR && tab == 1 && bot->HasSpell(46917)) || ((cls == CLASS_WARRIOR && tab == 1 && bot->HasSpell(46917)) ||
(cls == CLASS_DRUID && tab == 1) || (cls == CLASS_DRUID && tab == 1) ||
(cls == CLASS_PALADIN && tab == 2) || (cls == CLASS_PALADIN && tab == 2) ||
(cls == CLASS_DEATH_KNIGHT && tab == 0))) { (cls == CLASS_DEATH_KNIGHT && tab == 0) ||
(cls == CLASS_SHAMAN && tab == 1 && !bot->HasSpell(674)))) {
score *= 10; score *= 10;
} }
} }

View File

@@ -623,6 +623,7 @@ std::vector<std::string> PlayerbotHolder::HandlePlayerbotCommand(char const* arg
if (!*args) if (!*args)
{ {
messages.push_back("usage: list/reload/tweak/self or add/init/remove PLAYERNAME"); messages.push_back("usage: list/reload/tweak/self or add/init/remove PLAYERNAME");
messages.push_back(" addclass CLASSNAME");
return messages; return messages;
} }
@@ -631,6 +632,7 @@ std::vector<std::string> PlayerbotHolder::HandlePlayerbotCommand(char const* arg
if (!cmd) if (!cmd)
{ {
messages.push_back("usage: list/reload/tweak/self or add/init/remove PLAYERNAME"); messages.push_back("usage: list/reload/tweak/self or add/init/remove PLAYERNAME");
messages.push_back(" addclass CLASSNAME");
return messages; return messages;
} }