mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
fix rogue stealth
This commit is contained in:
parent
a63c6b6709
commit
38f8ea5fd9
@ -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");
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user