Jump to content

[fix][8911] Item_Duration displaying (realtimeonly case)


Guest Wowka321

Recommended Posts

Time for items duration not showing (but realy ticking) if item duration < 0 (realtime case).

Fix:

diff --git a/src/game/ItemHandler.cpp b/src/game/ItemHandler.cpp
index 992f946..d4e1d9a 100644
--- a/src/game/ItemHandler.cpp
+++ b/src/game/ItemHandler.cpp
@@ -425,7 +425,7 @@ void WorldSession::HandleItemQuerySingleOpcode( WorldPacket & recv_data )
        data << pProto->GemProperties;
        data << pProto->RequiredDisenchantSkill;
        data << pProto->ArmorDamageModifier;
-        data << pProto->Duration;                           // added in 2.4.2.8209, duration (seconds)
+        data << abs(pProto->Duration);                      // added in 2.4.2.8209, duration (seconds)
        data << pProto->ItemLimitCategory;                  // WotLK, ItemLimitCategory
        data << pProto->HolidayId;                          // Holiday.dbc?
        SendPacket( &data );

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use