Nostrademous / Dota2-WebAI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[LUA CODE] Implement InventoryHelper:SellItem( sItemName )

Nostrademous opened this issue · comments

Selling an item is an atomic operation (if we are near a shop/fountain OR the item is on a courier and the courier is at a shop/fountain).

Implement the ActionImmediate_SellItem() hero-scoped API call as part of our InventoryHelper.

Done in c827efc

Checks for being near shop and having the item we are selling.