fix(Scripts/BlackwingLair): Improved Ebonroc's movement. (#10905)

This commit is contained in:
UltraNix 2022-03-10 07:32:18 +01:00 committed by GitHub
parent e2d7dc9bd7
commit 6e35325a9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,6 +42,21 @@ public:
{
boss_ebonrocAI(Creature* creature) : BossAI(creature, DATA_EBONROC) { }
void MovementInform(uint32 type, uint32 id) override
{
if (type != WAYPOINT_MOTION_TYPE || id != 12)
{
return;
}
me->GetMotionMaster()->MoveRandom(10.f);
me->m_Events.AddEventAtOffset([this]()
{
me->GetMotionMaster()->Initialize();
}, 15s);
}
void EnterCombat(Unit* who) override
{
BossAI::EnterCombat(who);