fix(Scripts/BlackwingLair): Improved Ebonroc's movement. (#10905)
This commit is contained in:
parent
e2d7dc9bd7
commit
6e35325a9c
1 changed files with 15 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue