mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fix rogue stealth
This commit is contained in:
@@ -14,16 +14,6 @@ bool CastStealthAction::isPossible()
|
|||||||
return !botAI->HasAura(23333, bot) && !botAI->HasAura(23335, bot) && !botAI->HasAura(34976, bot);
|
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)
|
bool UnstealthAction::Execute(Event event)
|
||||||
{
|
{
|
||||||
botAI->RemoveAura("stealth");
|
botAI->RemoveAura("stealth");
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ class CastStealthAction : public CastBuffSpellAction
|
|||||||
std::string const GetTargetName() override { return "self target"; }
|
std::string const GetTargetName() override { return "self target"; }
|
||||||
|
|
||||||
bool isPossible() override;
|
bool isPossible() override;
|
||||||
bool Execute(Event event) override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class UnstealthAction : public Action
|
class UnstealthAction : public Action
|
||||||
|
|||||||
Reference in New Issue
Block a user