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
|
||||
{
|
||||
// if (!sEnabled)
|
||||
// return;
|
||||
if (!sEnabled)
|
||||
return;
|
||||
if (!unit || unit->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
Player* player = unit->ToPlayer();
|
||||
if (!player)
|
||||
return;
|
||||
// if (!RequirementsMet(player))
|
||||
// return;
|
||||
if (!RequirementsMet(player))
|
||||
return;
|
||||
|
||||
// if (form == FORM_TRAVEL)
|
||||
if (form == FORM_TRAVEL)
|
||||
player->SetSpeed(MOVE_RUN, 2.0f, true);
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user