diff --git a/src/strategy/deathknight/FrostDKStrategy.cpp b/src/strategy/deathknight/FrostDKStrategy.cpp index 5958c5c6..2a9ea33d 100644 --- a/src/strategy/deathknight/FrostDKStrategy.cpp +++ b/src/strategy/deathknight/FrostDKStrategy.cpp @@ -10,7 +10,7 @@ class FrostDKStrategyActionNodeFactory : public NamedObjectFactory public: FrostDKStrategyActionNodeFactory() { - //creators["icy touch"] = &icy_touch; + creators["icy touch"] = &icy_touch; creators["obliterate"] = &obliterate; creators["howling blast"] = &howling_blast; creators["frost strike"] = &frost_strike; @@ -29,6 +29,14 @@ class FrostDKStrategyActionNodeFactory : public NamedObjectFactory } private: + static ActionNode* icy_touch([[maybe_unused]] PlayerbotAI* botAI) + { + return new ActionNode("icy touch", + /*P*/ NextAction::array(0, new NextAction("blood presence"), nullptr), + /*A*/ nullptr, + /*C*/ nullptr); + } + static ActionNode* obliterate([[maybe_unused]] PlayerbotAI* botAI) { return new ActionNode("obliterate", diff --git a/src/strategy/deathknight/UnholyDKStrategy.cpp b/src/strategy/deathknight/UnholyDKStrategy.cpp index ad6f58ee..212b5aa2 100644 --- a/src/strategy/deathknight/UnholyDKStrategy.cpp +++ b/src/strategy/deathknight/UnholyDKStrategy.cpp @@ -27,6 +27,7 @@ class UnholyDKStrategyActionNodeFactory : public NamedObjectFactory //creators["anti magic zone"] = &anti_magic_zone; //creators["ghoul frenzy"] = &ghoul_frenzy; creators["corpse explosion"] = &corpse_explosion; + creators["icy touch"] = &icy_touch; } private: @@ -53,6 +54,13 @@ class UnholyDKStrategyActionNodeFactory : public NamedObjectFactory /*A*/ nullptr, /*C*/ nullptr); } + static ActionNode* icy_touch([[maybe_unused]] PlayerbotAI* botAI) + { + return new ActionNode("icy touch", + /*P*/ NextAction::array(0, new NextAction("blood presence"), nullptr), + /*A*/ nullptr, + /*C*/ nullptr); + } }; NextAction** UnholyDKStrategy::getDefaultActions()