Separating movespeed change and adding delay
This commit is contained in:
parent
845a2e217f
commit
62818defa4
@ -72,18 +72,18 @@ public:
|
|||||||
|
|
||||||
void OnUnitSetShapeshiftForm(Unit* unit, uint8 form) override
|
void OnUnitSetShapeshiftForm(Unit* unit, uint8 form) override
|
||||||
{
|
{
|
||||||
// if (!sEnabled)
|
if (!sEnabled)
|
||||||
// return;
|
return;
|
||||||
if (!unit || unit->GetTypeId() != TYPEID_PLAYER)
|
if (!unit || unit->GetTypeId() != TYPEID_PLAYER)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Player* player = unit->ToPlayer();
|
Player* player = unit->ToPlayer();
|
||||||
if (!player)
|
if (!player)
|
||||||
return;
|
return;
|
||||||
// if (!RequirementsMet(player))
|
if (!RequirementsMet(player))
|
||||||
// return;
|
return;
|
||||||
|
|
||||||
// if (form == FORM_TRAVEL)
|
if (form == FORM_TRAVEL)
|
||||||
player->SetSpeed(MOVE_RUN, 2.0f, true);
|
player->SetSpeed(MOVE_RUN, 2.0f, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user