mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 22:15:15 +00:00
refactor(Core/AI) don't add currentTarget to the front of the SelectTargetList for MaxThreat/Random (#21965)
This commit is contained in:
@@ -115,7 +115,7 @@ struct boss_pathaleon_the_calculator : public BossAI
|
||||
context.Repeat(15s);
|
||||
}).Schedule(10s, 15s, [this](TaskContext context)
|
||||
{
|
||||
if (DoCastRandomTarget(SPELL_DOMINATION, 1, 50.0f) == SPELL_CAST_OK)
|
||||
if (DoCastRandomTarget(SPELL_DOMINATION, 0, 50.0f, true, false, false) == SPELL_CAST_OK)
|
||||
{
|
||||
Talk(SAY_DOMINATION);
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ struct boss_harbinger_skyriss : public BossAI
|
||||
context.Repeat(25s);
|
||||
}).Schedule(30s, [this](TaskContext context)
|
||||
{
|
||||
if (DoCastRandomTarget(SPELL_DOMINATION, 1, 30.0f) == SPELL_CAST_OK)
|
||||
if (DoCastRandomTarget(SPELL_DOMINATION, 0, 30.0f, true, false, false) == SPELL_CAST_OK)
|
||||
{
|
||||
Talk(SAY_MIND);
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ struct boss_thorngrin_the_tender : public BossAI
|
||||
|
||||
scheduler.Schedule(6s, [this](TaskContext context)
|
||||
{
|
||||
if (DoCastRandomTarget(SPELL_SACRIFICE, 1) == SPELL_CAST_OK)
|
||||
if (DoCastRandomTarget(SPELL_SACRIFICE, 0, 0.0f, true, false, false) == SPELL_CAST_OK)
|
||||
{
|
||||
Talk(SAY_CAST_SACRIFICE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user