mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 07:06:23 +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:
@@ -197,7 +197,7 @@ public:
|
||||
events.RepeatEvent(urand(4000, 5000));
|
||||
break;
|
||||
case EVENT_FROST_TOMB:
|
||||
if( Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 0.0f, true) )
|
||||
if( Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 0.0f, true, true) )
|
||||
if( !target->HasAura(SPELL_FROST_TOMB_AURA) )
|
||||
{
|
||||
Talk(SAY_FROST_TOMB_EMOTE, target);
|
||||
|
||||
Reference in New Issue
Block a user