Nostrademous / Dota2-WebAI

MIT License
33 stars 6 forks source link

[LUA CODE] Implement InventoryHelper:SellItem( sItemName ) #6

Closed Nostrademous closed 7 years ago

Nostrademous commented 7 years ago

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.

Nostrademous commented 7 years ago

Done in c827efc

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