diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-08-29 01:03:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-09-18 22:31:51 +0300 |
commit | e55f9bce0d224ff517d21112bb323872fbc3ba70 (patch) | |
tree | 333e3551eb4eb2518c105243a7f20ea52acb22d0 /src/map | |
parent | d7a8b4c7b4ff9888635394e1880a9409a179532b (diff) | |
download | hercules-e55f9bce0d224ff517d21112bb323872fbc3ba70.tar.gz hercules-e55f9bce0d224ff517d21112bb323872fbc3ba70.tar.bz2 hercules-e55f9bce0d224ff517d21112bb323872fbc3ba70.tar.xz hercules-e55f9bce0d224ff517d21112bb323872fbc3ba70.zip |
Rollback support for new skill packets in zero. It not added yet
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 4 | ||||
-rw-r--r-- | src/map/packets_struct.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 1a745d5db..ca29a4397 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5268,7 +5268,7 @@ static void clif_playerSkillToPacket(struct map_session_data *sd, struct SKILLDA skillData->sp = 0; skillData->range2 = 0; } -#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190814 +#if PACKETVER_RE_NUM >= 20190807 if (newSkill) skillData->level2 = 0; else @@ -5419,7 +5419,7 @@ static void clif_skillinfo(struct map_session_data *sd, int skill_id, int inf) p->sp = 0; p->range2 = 0; } -#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190814 +#if PACKETVER_RE_NUM >= 20190807 p->level2 = skill_lv; #endif if (sd->status.skill[idx].flag == SKILL_FLAG_PERMANENT) diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 45254b5f8..79ecabc46 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3514,7 +3514,7 @@ DEFINE_PACKET_HEADER(ZC_HAT_EFFECT, 0x0a3b); #endif // [4144] this struct updated not in all packets in client -#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190814 +#if PACKETVER_RE_NUM >= 20190807 struct SKILLDATA { uint16 id; int inf; @@ -3540,7 +3540,7 @@ struct PACKET_ZC_ADD_SKILL { int16 packetType; struct SKILLDATA skill; } __attribute__((packed)); -#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190814 +#if PACKETVER_RE_NUM >= 20190807 DEFINE_PACKET_HEADER(ZC_ADD_SKILL, 0x0b31); #else DEFINE_PACKET_HEADER(ZC_ADD_SKILL, 0x0111); @@ -3551,13 +3551,13 @@ struct PACKET_ZC_SKILLINFO_LIST { int16 packetLength; struct SKILLDATA skills[]; } __attribute__((packed)); -#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190814 +#if PACKETVER_RE_NUM >= 20190807 DEFINE_PACKET_HEADER(ZC_SKILLINFO_LIST, 0x0b32); #else DEFINE_PACKET_HEADER(ZC_SKILLINFO_LIST, 0x010f); #endif -#if PACKETVER_RE_NUM >= 20190807 || PACKETVER_ZERO_NUM >= 20190814 +#if PACKETVER_RE_NUM >= 20190807 struct PACKET_ZC_SKILLINFO_UPDATE2 { int16 packetType; uint16 id; |