From 86566b76415cda705383b504c54cecc3c4fa3139 Mon Sep 17 00:00:00 2001 From: rud0lp20 Date: Thu, 24 May 2012 14:21:09 +0000 Subject: Fixed RA_CAMOUFLAGE where the animation(semi transparent effect) is not seen when sight is refreshed. Fixed RA_CLUSTERBOMB now it has 1s delay to disappear when activated and does full damage in plants. Fixed Burning status fixed damage (1000+3% of MaxHP) and damage effect and walk delay git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16143 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index af64f74b5..d626c94b1 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4047,6 +4047,8 @@ void clif_getareachar_unit(struct map_session_data* sd,struct block_list *bl) clif_specialeffect_single(bl,421,sd->fd); if( tsd->bg_id && map[tsd->bl.m].flag.battleground ) clif_sendbgemblem_single(sd->fd,tsd); + if( tsd->sc.data[SC_CAMOUFLAGE] ) + clif_status_load(bl,SI_CAMOUFLAGE,1); } break; case BL_MER: // Devotion Effects @@ -4130,6 +4132,7 @@ int clif_damage(struct block_list* src, struct block_list* dst, unsigned int tic { unsigned char buf[33]; struct status_change *sc; + int dir=0; #if PACKETVER < 20071113 const int cmd = 0x8a; #else @@ -4148,6 +4151,8 @@ int clif_damage(struct block_list* src, struct block_list* dst, unsigned int tic } } + dir = unit_getdir(src); + WBUFW(buf,0)=cmd; WBUFL(buf,2)=src->id; WBUFL(buf,6)=dst->id; @@ -4195,6 +4200,9 @@ int clif_damage(struct block_list* src, struct block_list* dst, unsigned int tic #endif clif_send(buf,packet_len(cmd),src,SELF); } + + if(src == dst) + unit_setdir(src,dir); //Return adjusted can't walk delay for further processing. return clif_calc_walkdelay(dst,ddelay,type,damage+damage2,div); } -- cgit v1.2.3-70-g09d2