fix(Core/Scripts): Ikiss polymorph target (#16409)
This commit is contained in:
parent
79d6f4e233
commit
746aa5b493
1 changed files with 8 additions and 1 deletions
|
|
@ -104,7 +104,14 @@ struct boss_talon_king_ikiss : public BossAI
|
|||
context.Repeat(7s, 12s);
|
||||
}).Schedule(8s, [this](TaskContext context)
|
||||
{
|
||||
DoCastRandomTarget(SPELL_POLYMORPH);
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(SPELL_POLYMORPH);
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 1, [&](Unit* target) -> bool
|
||||
{
|
||||
return target && !target->IsImmunedToSpell(spellInfo);
|
||||
}))
|
||||
{
|
||||
DoCast(target, SPELL_POLYMORPH);
|
||||
}
|
||||
context.Repeat(15s, 17500ms);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue