mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Scripts/SSC): Leotheras demon form fixes (#17953)
* initial * add 15% hp to p3 demon * increase chase range * correct behaviour * remover leftover and make target non-static * whitespace
This commit is contained in:
@@ -167,17 +167,33 @@ struct boss_leotheras_the_blind : public BossAI
|
||||
});
|
||||
}
|
||||
|
||||
void MoveToTargetIfOutOfRange(Unit* target)
|
||||
{
|
||||
if (me->GetDistance2d(target) > 40.0f)
|
||||
{
|
||||
me->GetMotionMaster()->MoveChase(target, 5.0f, 0);
|
||||
me->AddThreat(target, 0.0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
me->GetMotionMaster()->Clear();
|
||||
}
|
||||
}
|
||||
|
||||
void DemonTime()
|
||||
{
|
||||
DoResetThreatList();
|
||||
me->RemoveAurasDueToSpell(SPELL_WHIRLWIND);
|
||||
me->InterruptNonMeleeSpells(false);
|
||||
me->LoadEquipment(0, true);
|
||||
me->GetMotionMaster()->MoveChase(me->GetVictim(), 25.0f);
|
||||
DoCastSelf(SPELL_METAMORPHOSIS, true);
|
||||
|
||||
scheduler.CancelGroup(GROUP_COMBAT);
|
||||
scheduler.Schedule(24250ms, GROUP_DEMON, [this](TaskContext)
|
||||
scheduler.Schedule(1s, GROUP_DEMON, [this](TaskContext context)
|
||||
{
|
||||
MoveToTargetIfOutOfRange(me->GetVictim());
|
||||
context.Repeat(1s);
|
||||
}).Schedule(24250ms, GROUP_DEMON, [this](TaskContext)
|
||||
{
|
||||
Talk(SAY_INNER_DEMONS);
|
||||
me->CastCustomSpell(SPELL_INSIDIOUS_WHISPER, SPELLVALUE_MAX_TARGETS, 5, me, false);
|
||||
@@ -187,6 +203,7 @@ struct boss_leotheras_the_blind : public BossAI
|
||||
me->LoadEquipment();
|
||||
me->GetMotionMaster()->MoveChase(me->GetVictim(), 0.0f);
|
||||
me->RemoveAurasDueToSpell(SPELL_METAMORPHOSIS);
|
||||
scheduler.CancelGroup(GROUP_DEMON);
|
||||
ElfTime();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user