mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-30 17:13:47 +00:00
refactor(Core/UnitAI): Update target selector (#13169)
* refactor(Core/UnitAI): Update TargetSelector. Cherry-pick: *https://github.com/TrinityCore/TrinityCore/pull/19930 Co-authored-by: Treeston <treeston@users.noreply.github.com> * fix GGC/CLang errors in scripts * . * missing a file and fix a script error * . * fix path changes dude to a miss click in the second commit * . Co-authored-by: Maelthyrr <lynethris@protonmail.ch> Co-authored-by: Treeston <treeston@users.noreply.github.com>
This commit is contained in:
@@ -1768,7 +1768,7 @@ struct npc_coren_direbrew_sisters : public ScriptedAI
|
||||
})
|
||||
.Schedule(Seconds(2), [this](TaskContext mugChuck)
|
||||
{
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 0.0f, false, -SPELL_HAS_DARK_BREWMAIDENS_BREW))
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 0.0f, false, true, -SPELL_HAS_DARK_BREWMAIDENS_BREW))
|
||||
{
|
||||
DoCast(target, SPELL_CHUCK_MUG);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user