1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +00:00

Drop inventory items for minion/mount

This commit is contained in:
Lucy 2023-02-25 19:59:53 +01:00
parent 71cedf27e8
commit fa1a5213d1

View file

@ -93,9 +93,8 @@ void ItemAction::handleCompanionItem()
{
auto player = getSourceChara()->getAsPlayer();
Logger::debug( "Companion arg: {0}", m_itemAction->data().Calcu0Arg[ 0 ] );
player->unlockCompanion( m_itemAction->data().Calcu0Arg[ 0 ] );
player->dropInventoryItem( static_cast< Common::InventoryType >( m_itemSourceContainer ), m_itemSourceSlot );
}
void ItemAction::handleMountItem()
@ -103,5 +102,5 @@ void ItemAction::handleMountItem()
auto player = getSourceChara()->getAsPlayer();
player->unlockMount( m_itemAction->data().Calcu0Arg[ 0 ] );
player->discardItem( m_itemSourceContainer, m_itemSourceSlot );
player->dropInventoryItem( static_cast< Common::InventoryType >( m_itemSourceContainer ), m_itemSourceSlot );
}