mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 14:05:28 +00:00
refactor(Core/AI) don't add currentTarget to the front of the SelectTargetList for MaxThreat/Random (#21965)
This commit is contained in:
@@ -67,7 +67,7 @@ public:
|
||||
}).Schedule(25s, 32s, [this](TaskContext context)
|
||||
{
|
||||
Talk(SAY_SLEEP);
|
||||
DoCastRandomTarget(SPELL_SLEEP, 1, 0.0f, true, false, false);
|
||||
DoCastRandomTarget(SPELL_SLEEP, 0, 0.0f, true, false, false);
|
||||
context.Repeat(35s, 48s);
|
||||
}).Schedule(30s, 48s, [this](TaskContext context)
|
||||
{
|
||||
|
||||
@@ -81,7 +81,7 @@ struct boss_lieutenant_drake : public BossAI
|
||||
context.Repeat(25s);
|
||||
}).Schedule(1s, [this](TaskContext context)
|
||||
{
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 1, 40.0f))
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 40.0f, false, false))
|
||||
{
|
||||
DoCast(target, SPELL_EXPLODING_SHOT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user