From e11ea57dde611dbdd58a9eee108068ebcfae6d0b Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 8 Apr 2024 23:30:15 +0800 Subject: [PATCH] DK death and decay --- src/strategy/deathknight/GenericDKStrategy.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/strategy/deathknight/GenericDKStrategy.cpp b/src/strategy/deathknight/GenericDKStrategy.cpp index 241816eb..42c4ffa4 100644 --- a/src/strategy/deathknight/GenericDKStrategy.cpp +++ b/src/strategy/deathknight/GenericDKStrategy.cpp @@ -33,7 +33,7 @@ class GenericDKStrategyActionNodeFactory : public NamedObjectFactory //creators["improved icy talons"] = &improved_icy_talons; boost party //unholy - //creators["death and decay"] = &death_and_decay; + creators["death and decay"] = &death_and_decay; //creators["raise dead"] = &raise_dead; //creators["army of the dead"] = &army of the dead; //creators["summon gargoyle"] = &army of the dead; @@ -130,6 +130,14 @@ class GenericDKStrategyActionNodeFactory : public NamedObjectFactory /*C*/ nullptr); } + static ActionNode* death_and_decay([[maybe_unused]] PlayerbotAI* botAI) + { + return new ActionNode ("death and decay", + /*P*/ nullptr, + /*A*/ NextAction::array(0, new NextAction("blood tap"), nullptr), + /*C*/ nullptr); + } + static ActionNode* anti_magic_zone([[maybe_unused]] PlayerbotAI* botAI) { return new ActionNode ("anti magic zone",