fix(Scripts/Oculus): Fix Mage-Lord Urom not teleporting between platforms (#25220)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -213,6 +213,7 @@ public:
|
|||||||
me->LoadCreaturesAddon(true);
|
me->LoadCreaturesAddon(true);
|
||||||
me->SetLootRecipient(nullptr);
|
me->SetLootRecipient(nullptr);
|
||||||
me->ResetPlayerDamageReq();
|
me->ResetPlayerDamageReq();
|
||||||
|
EngagementOver();
|
||||||
}
|
}
|
||||||
|
|
||||||
void JustDied(Unit* /*killer*/) override
|
void JustDied(Unit* /*killer*/) override
|
||||||
@@ -369,6 +370,10 @@ public:
|
|||||||
|
|
||||||
void EnterEvadeMode(EvadeReason why) override
|
void EnterEvadeMode(EvadeReason why) override
|
||||||
{
|
{
|
||||||
|
// Block evade during outer platform transitions
|
||||||
|
if (lock)
|
||||||
|
return;
|
||||||
|
|
||||||
me->SetCanFly(false);
|
me->SetCanFly(false);
|
||||||
me->SetDisableGravity(false);
|
me->SetDisableGravity(false);
|
||||||
me->SetControlled(false, UNIT_STATE_ROOT);
|
me->SetControlled(false, UNIT_STATE_ROOT);
|
||||||
|
|||||||
Reference in New Issue
Block a user