PremadeSpecGlyph config (unimplemented)

This commit is contained in:
Yunfan Li
2024-03-05 00:11:53 +08:00
parent d99e6d9fbb
commit b7b334af99
6 changed files with 30 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ uint32 LfgJoinAction::GetRoles()
case CLASS_DRUID:
if (spec == 2)
return PLAYER_ROLE_HEALER;
else if (spec == 1 && bot->getLevel() >= 20)
else if (spec == 1)
return (PLAYER_ROLE_TANK | PLAYER_ROLE_DAMAGE);
else
return PLAYER_ROLE_DAMAGE;

View File

@@ -36,7 +36,7 @@ bool LootRollAction::Execute(Event event)
{
case ITEM_CLASS_WEAPON:
case ITEM_CLASS_ARMOR:
if (usage == ITEM_USAGE_EQUIP || usage == ITEM_USAGE_REPLACE) {
if (usage == ITEM_USAGE_EQUIP || usage == ITEM_USAGE_REPLACE || usage == ITEM_USAGE_BAD_EQUIP) {
vote = NEED;
}
else if (usage != ITEM_USAGE_NONE) {

View File

@@ -18,6 +18,7 @@ class ShadowPriestStrategyActionNodeFactory : public NamedObjectFactory<ActionNo
creators["mind blast"] = &mind_blast;
creators["dispersion"] = &dispersion;
creators["mind flay"] = &mind_flay;
creators["smite"] = &smite;
}
private:
@@ -32,10 +33,19 @@ class ShadowPriestStrategyActionNodeFactory : public NamedObjectFactory<ActionNo
static ActionNode* mind_flay(PlayerbotAI* botAI)
{
return new ActionNode ("mind flay",
/*P*/ nullptr,
/*A*/ NextAction::array(0, new NextAction("smite"), nullptr),
/*C*/ nullptr);
}
static ActionNode* smite(PlayerbotAI* botAI)
{
return new ActionNode ("smite",
/*P*/ nullptr,
/*A*/ NextAction::array(0, new NextAction("shoot"), nullptr),
/*C*/ nullptr);
}
static ActionNode* dispersion(PlayerbotAI* botAI)
{
return new ActionNode ("dispersion",