mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Scripts): Ikiss polymorph target (#16409)
This commit is contained in:
@@ -104,7 +104,14 @@ struct boss_talon_king_ikiss : public BossAI
|
|||||||
context.Repeat(7s, 12s);
|
context.Repeat(7s, 12s);
|
||||||
}).Schedule(8s, [this](TaskContext context)
|
}).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);
|
context.Repeat(15s, 17500ms);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user