diff options
author | shennetsind <ind@henn.et> | 2014-09-20 15:40:18 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-09-20 15:40:18 -0300 |
commit | 86d17badf325e9d87559a3a087d3c142a757cae9 (patch) | |
tree | 65e49b6be3425e0b994d34458d162d94e912ed58 /src | |
parent | 1c1e10a5804ccde4daddd59d2f5d9916aa0d26db (diff) | |
download | hercules-86d17badf325e9d87559a3a087d3c142a757cae9.tar.gz hercules-86d17badf325e9d87559a3a087d3c142a757cae9.tar.bz2 hercules-86d17badf325e9d87559a3a087d3c142a757cae9.tar.xz hercules-86d17badf325e9d87559a3a087d3c142a757cae9.zip |
Fixed Bug 8263
Issue on packetver 20131223 or newer where skill-damage with type 6 would be considered by the client as endure-type, fixing by swapping with value 8 which presents no different graphical representation than it'd otherwise.
Special Thanks to kyeme, Rytech, Valo.
http://hercules.ws/board/tracker/issue-8263-dec-23-2013-client/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 308f419a7..9fec0bc66 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5128,8 +5128,12 @@ int clif_skill_damage(struct block_list *src, struct block_list *dst, int64 tick damage = (int)cap_value(in_damage,INT_MIN,INT_MAX); type = clif_calc_delay(type,div,damage,ddelay); - sc = status->get_sc(dst); - if(sc && sc->count) { + +#if PACKETVER >= 20131223 + if( type == 6 ) type = 8; //bugreport:8263 +#endif + + if( ( sc = status->get_sc(dst) ) && sc->count ) { if(sc->data[SC_ILLUSION] && damage) damage = damage*(sc->data[SC_ILLUSION]->val2) + rnd()%100; } |