mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 17:49:21 +02:00
Fix issue #121
This commit is contained in:
parent
6acdb0fd64
commit
5f72488eba
@ -710,7 +710,7 @@ void Game::useWith(const ItemPtr& item, const ThingPtr& toThing)
|
||||
if(!pos.isValid()) // virtual item
|
||||
pos = Position(0xFFFF, 0, 0); // means that is a item in inventory
|
||||
|
||||
if(toThing->isCreature())
|
||||
if(toThing->isCreature() && g_game.getClientVersion() >= 860)
|
||||
m_protocolGame->sendUseOnCreature(pos, item->getId(), item->getStackpos(), toThing->getId());
|
||||
else
|
||||
m_protocolGame->sendUseItemWith(pos, item->getId(), item->getStackpos(), toThing->getPosition(), toThing->getId(), toThing->getStackpos());
|
||||
|
Loading…
x
Reference in New Issue
Block a user