mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +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);
|
||||
}).Schedule(23s, [this](TaskContext context)
|
||||
{
|
||||
//changed to work similarly to Ikiss poly
|
||||
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);
|
||||
}
|
||||
DoCastVictim(SPELL_GREATER_POLYMORPH);
|
||||
context.Repeat(10900ms);
|
||||
}).Schedule(30s, [this](TaskContext context)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user