[DiscordArchive] You mean to add a Dismount() just under the call to "SetMountBlockId" ?
[DiscordArchive] You mean to add a Dismount() just under the call to "SetMountBlockId" ?
Archived author: Nyeriah • Posted: 2021-09-24T19:01:15.704000+00:00
Original source
spellworks
Archived author: Nyeriah • Posted: 2021-09-24T19:02:31.280000+00:00
Original source
https://github.com/TrinityCore/SpellWork/tree/master
[Embed: GitHub - TrinityCore/SpellWork at master]
Spell info viewer for multiple versions of WoW. Contribute to TrinityCore/SpellWork development by creating an account on GitHub.
https://github.com/TrinityCore/SpellWork/tree/master
Archived author: Drooppi • Posted: 2021-09-24T19:02:38.659000+00:00
Original source
thanks
Archived author: Drooppi • Posted: 2021-09-24T19:03:00.872000+00:00
Original source
well actually yeah, dismount() does remove the mount, but somehow the mount is saved and added back again after the player has entered
Archived author: Drooppi • Posted: 2021-09-24T19:26:47.244000+00:00
Original source
```
player->RemoveAurasByType(SPELL_AURA_MOUNTED);
player->SetMountBlockId(0);
player->Dismount();
```
This did the trick for now... Could be that Dismount() needs some refactoring and should actually take care of removing all that stuff