From 86d17badf325e9d87559a3a087d3c142a757cae9 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 20 Sep 2014 15:40:18 -0300 Subject: 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 --- src/map/clif.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2