mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
miscs
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user