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:
parent
71cedf27e8
commit
fa1a5213d1
1 changed files with 2 additions and 3 deletions
|
@ -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 );
|
||||
}
|
Loading…
Add table
Reference in a new issue