|
@@ -4132,7 +4132,6 @@ int clif_damage(struct block_list* src, struct block_list* dst, unsigned int tic
|
|
{
|
|
{
|
|
unsigned char buf[33];
|
|
unsigned char buf[33];
|
|
struct status_change *sc;
|
|
struct status_change *sc;
|
|
- int dir=0;
|
|
|
|
#if PACKETVER < 20071113
|
|
#if PACKETVER < 20071113
|
|
const int cmd = 0x8a;
|
|
const int cmd = 0x8a;
|
|
#else
|
|
#else
|
|
@@ -4151,8 +4150,6 @@ int clif_damage(struct block_list* src, struct block_list* dst, unsigned int tic
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- dir = unit_getdir(src);
|
|
|
|
-
|
|
|
|
WBUFW(buf,0)=cmd;
|
|
WBUFW(buf,0)=cmd;
|
|
WBUFL(buf,2)=src->id;
|
|
WBUFL(buf,2)=src->id;
|
|
WBUFL(buf,6)=dst->id;
|
|
WBUFL(buf,6)=dst->id;
|
|
@@ -4201,8 +4198,9 @@ int clif_damage(struct block_list* src, struct block_list* dst, unsigned int tic
|
|
clif_send(buf,packet_len(cmd),src,SELF);
|
|
clif_send(buf,packet_len(cmd),src,SELF);
|
|
}
|
|
}
|
|
|
|
|
|
- if(src == dst)
|
|
|
|
- unit_setdir(src,dir);
|
|
|
|
|
|
+ if(src == dst) {
|
|
|
|
+ unit_setdir(src,unit_getdir(src));
|
|
|
|
+ }
|
|
//Return adjusted can't walk delay for further processing.
|
|
//Return adjusted can't walk delay for further processing.
|
|
return clif_calc_walkdelay(dst,ddelay,type,damage+damage2,div);
|
|
return clif_calc_walkdelay(dst,ddelay,type,damage+damage2,div);
|
|
}
|
|
}
|