From 38f8ea5fd98b0ae797f489fa29a9f346244d22f6 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 22 Oct 2023 11:28:00 +0800 Subject: [PATCH] fix rogue stealth --- src/strategy/rogue/RogueActions.cpp | 10 ---------- src/strategy/rogue/RogueActions.h | 1 - 2 files changed, 11 deletions(-) diff --git a/src/strategy/rogue/RogueActions.cpp b/src/strategy/rogue/RogueActions.cpp index 99ffcc64..e0ece34c 100644 --- a/src/strategy/rogue/RogueActions.cpp +++ b/src/strategy/rogue/RogueActions.cpp @@ -14,16 +14,6 @@ bool CastStealthAction::isPossible() return !botAI->HasAura(23333, bot) && !botAI->HasAura(23335, bot) && !botAI->HasAura(34976, bot); } -bool CastStealthAction::Execute(Event event) -{ - if (botAI->CastSpell("stealth", bot)) - { - // botAI->ChangeStrategy("-dps,+stealthed", BOT_STATE_COMBAT); - } - - return true; -} - bool UnstealthAction::Execute(Event event) { botAI->RemoveAura("stealth"); diff --git a/src/strategy/rogue/RogueActions.h b/src/strategy/rogue/RogueActions.h index 21b5ed57..3087f744 100644 --- a/src/strategy/rogue/RogueActions.h +++ b/src/strategy/rogue/RogueActions.h @@ -32,7 +32,6 @@ class CastStealthAction : public CastBuffSpellAction std::string const GetTargetName() override { return "self target"; } bool isPossible() override; - bool Execute(Event event) override; }; class UnstealthAction : public Action