Fixed horse refresh when change seal

This commit is contained in:
Mitachi
2024-02-05 23:17:08 +01:00
parent 1c40b2e431
commit 49d9feae87

View File

@ -12,6 +12,48 @@
dwMountVnum = pMountItem->GetValue(1);
#endif
// then search:
if (m_chHorse)
{
...
}
// and replace with this:
if (m_chHorse)
{
#ifdef ENABLE_MOUNT_LIKE_HORSE
if (GetMountVnum() != dwVnum) {
HorseSummon(false);
HorseSummon(true);
}
#endif
return;
}
/*Example
void CHARACTER::HorseSummon(bool bSummon, bool bFromFar, DWORD dwVnum, const char* pPetName)
{
#ifdef ENABLE_MOUNT_LIKE_HORSE
if (const LPITEM pMountItem = GetWear(WEAR_COSTUME_MOUNT))
dwVnum = pMountItem->GetValue(1);
#endif
if (bSummon)
{
// NOTE: If you summon and there is already a horse, it will do nothing.
if (m_chHorse)
{
#ifdef ENABLE_MOUNT_LIKE_HORSE // try fix
if (GetMountVnum() != dwVnum) {
HorseSummon(false);
HorseSummon(true);
}
#endif
return;
}
*/
// then search:
UpdatePacket();