Преглед на файлове

Corrected Enchant Arms for older clients (#4196)

* Fixes Enchant Arms displaying an incorrect status icon for clients older than 2015-11-04.
Thanks to @Daegaladh and @Lemongrass3110!
Aleos преди 6 години
родител
ревизия
754274bc58
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      src/map/clif.cpp

+ 5 - 0
src/map/clif.cpp

@@ -5995,6 +5995,11 @@ void clif_status_change_sub(struct block_list *bl, int id, int type, int flag, t
 
 	nullpo_retv(bl);
 
+#if PACKETVER < 20151104
+	if (type == EFST_WEAPONPROPERTY)
+		type = EFST_ATTACK_PROPERTY_NOTHING + val1; // Assign status icon for older clients
+#endif
+
 #if PACKETVER >= 20120618
 	if (flag && battle_config.display_status_timers)
 		WBUFW(buf,0) = 0x983;