mirror of
https://github.com/mehah/otclient
synced 2026-08-15 16:29:06 -04:00
fix: do not start the local countdown for equipped items with expirestop (#1771)
This commit is contained in:
parent
ef80e7f5dc
commit
275abf6362
1 changed files with 3 additions and 1 deletions
|
|
@ -470,7 +470,9 @@ void LocalPlayer::setInventoryItem(const Otc::InventorySlot inventory, const Ite
|
|||
|
||||
if (item && g_game.getFeature(Otc::GameThingClock) && item->getDurationTime() > 0
|
||||
&& item->getClothSlot() == static_cast<int>(inventory)){
|
||||
item->setDecaying(true);
|
||||
// expirestop-only items (e.g. toggled-off magic light wand) are paused
|
||||
// server-side, so their countdown must not tick client-side either
|
||||
item->setDecaying(item->hasExpire() || item->hasClockExpire());
|
||||
}
|
||||
|
||||
callLuaField("onInventoryChange", inventory, item, oldItem);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue