mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix (Script/Gruul) Kiggler polymorph targets his tank (#21966)
Kiggler the Crazed now targets the tank when casting Greater Polymorph
This commit is contained in:
@@ -286,16 +286,7 @@ struct boss_kiggler_the_crazed : public ScriptedAI
|
|||||||
context.Repeat(7200ms, 20600ms);
|
context.Repeat(7200ms, 20600ms);
|
||||||
}).Schedule(23s, [this](TaskContext context)
|
}).Schedule(23s, [this](TaskContext context)
|
||||||
{
|
{
|
||||||
//changed to work similarly to Ikiss poly
|
DoCastVictim(SPELL_GREATER_POLYMORPH);
|
||||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(SPELL_GREATER_POLYMORPH);
|
|
||||||
if (Unit* target = SelectTarget(SelectTargetMethod::MaxThreat, 1, [&]
|
|
||||||
(Unit* target) -> bool
|
|
||||||
{
|
|
||||||
return target && !target->IsImmunedToSpell(spellInfo);
|
|
||||||
}))
|
|
||||||
{
|
|
||||||
DoCast(target, SPELL_GREATER_POLYMORPH);
|
|
||||||
}
|
|
||||||
context.Repeat(10900ms);
|
context.Repeat(10900ms);
|
||||||
}).Schedule(30s, [this](TaskContext context)
|
}).Schedule(30s, [this](TaskContext context)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user