Skip to content

Commit 9e82150

Browse files
committed
Add support for new skill packets in zero 20190918 and newer
1 parent b4892d5 commit 9e82150

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/map/clif.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5268,7 +5268,7 @@ static void clif_playerSkillToPacket(struct map_session_data *sd, struct SKILLDA
52685268
skillData->sp = 0;
52695269
skillData->range2 = 0;
52705270
}
5271-
#if PACKETVER_RE_NUM >= 20190807
5271+
#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190918
52725272
if (newSkill)
52735273
skillData->level2 = 0;
52745274
else
@@ -5419,7 +5419,7 @@ static void clif_skillinfo(struct map_session_data *sd, int skill_id, int inf)
54195419
p->sp = 0;
54205420
p->range2 = 0;
54215421
}
5422-
#if PACKETVER_RE_NUM >= 20190807
5422+
#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190918
54235423
p->level2 = skill_lv;
54245424
#endif
54255425
if (sd->status.skill[idx].flag == SKILL_FLAG_PERMANENT)

src/map/packets_struct.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3529,7 +3529,7 @@ DEFINE_PACKET_HEADER(ZC_HAT_EFFECT, 0x0a3b);
35293529
#endif
35303530

35313531
// [4144] this struct updated not in all packets in client
3532-
#if PACKETVER_RE_NUM >= 20190807
3532+
#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190918
35333533
struct SKILLDATA {
35343534
uint16 id;
35353535
int inf;
@@ -3555,7 +3555,7 @@ struct PACKET_ZC_ADD_SKILL {
35553555
int16 packetType;
35563556
struct SKILLDATA skill;
35573557
} __attribute__((packed));
3558-
#if PACKETVER_RE_NUM >= 20190807
3558+
#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190918
35593559
DEFINE_PACKET_HEADER(ZC_ADD_SKILL, 0x0b31);
35603560
#else
35613561
DEFINE_PACKET_HEADER(ZC_ADD_SKILL, 0x0111);
@@ -3566,13 +3566,13 @@ struct PACKET_ZC_SKILLINFO_LIST {
35663566
int16 packetLength;
35673567
struct SKILLDATA skills[];
35683568
} __attribute__((packed));
3569-
#if PACKETVER_RE_NUM >= 20190807
3569+
#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190918
35703570
DEFINE_PACKET_HEADER(ZC_SKILLINFO_LIST, 0x0b32);
35713571
#else
35723572
DEFINE_PACKET_HEADER(ZC_SKILLINFO_LIST, 0x010f);
35733573
#endif
35743574

3575-
#if PACKETVER_RE_NUM >= 20190807
3575+
#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190918
35763576
struct PACKET_ZC_SKILLINFO_UPDATE2 {
35773577
int16 packetType;
35783578
uint16 id;

0 commit comments

Comments
 (0)