mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
refactor(Script/Command): modify mount & dismount (#7413)
* refactor(Script/Command): modify mount * oopsies * Update rev_1629233438552386300.sql * codestyle * Update src/server/scripts/Commands/cs_modify.cpp Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com> * Update src/server/scripts/Commands/cs_modify.cpp Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com> * Update src/server/scripts/Commands/cs_modify.cpp Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com> * some improvements * When using .dismount also update speed to 100% * remove atoul * Update cs_modify.cpp * test Co-authored-by: Kargatum <dowlandtop@yandex.com> * Update cs_modify.cpp * fix tyop Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com> Co-authored-by: Kargatum <dowlandtop@yandex.com>
This commit is contained in:
@@ -957,6 +957,8 @@ public:
|
||||
|
||||
player->Dismount();
|
||||
player->RemoveAurasByType(SPELL_AURA_MOUNTED);
|
||||
player->SetSpeed(MOVE_RUN, 1, true);
|
||||
player->SetSpeed(MOVE_FLIGHT, 1, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user