fix rogue stealth

This commit is contained in:
Yunfan Li
2023-10-22 11:28:00 +08:00
parent a63c6b6709
commit 38f8ea5fd9
2 changed files with 0 additions and 11 deletions

View File

@@ -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");

View File

@@ -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