[Class spell] Fix healing priests stop casting due to threat

This commit is contained in:
Yunfan Li
2024-05-07 22:21:38 +08:00
parent 063d8e17d0
commit 26faac914e
4 changed files with 85 additions and 9 deletions

View File

@@ -50,13 +50,15 @@ class PriestCombatStrategyFactoryInternal : public NamedObjectContext<Strategy>
creators["heal"] = &PriestCombatStrategyFactoryInternal::heal;
creators["shadow"] = &PriestCombatStrategyFactoryInternal::dps;
creators["dps"] = &PriestCombatStrategyFactoryInternal::dps;
creators["holy"] = &PriestCombatStrategyFactoryInternal::holy;
creators["holy dps"] = &PriestCombatStrategyFactoryInternal::holy_dps;
creators["holy heal"] = &PriestCombatStrategyFactoryInternal::holy_heal;
}
private:
static Strategy* heal(PlayerbotAI* botAI) { return new HealPriestStrategy(botAI); }
static Strategy* dps(PlayerbotAI* botAI) { return new ShadowPriestStrategy(botAI); }
static Strategy* holy(PlayerbotAI* botAI) { return new HolyPriestStrategy(botAI); }
static Strategy* holy_dps(PlayerbotAI* botAI) { return new HolyPriestStrategy(botAI); }
static Strategy* holy_heal(PlayerbotAI* botAI) { return new HolyHealPriestStrategy(botAI); }
};
class PriestTriggerFactoryInternal : public NamedObjectContext<Trigger>