From 68584f714db13e550ae532674fc39a6aeff428dc Mon Sep 17 00:00:00 2001 From: ultramage Date: Tue, 16 Oct 2007 19:00:03 +0000 Subject: * Fixed a copy-paste mistake in disguise code (from r5833) * Commented out clif_skill_damage2() as it is not used anymore * Made Venom Splasher a splash attack that distributes damage * Fixed displaying of several splash skills (see bugreport:238) - added flag SD_PREAMBLE for skills that need the 'magic' packet (fixes Grimtooth / Cart Revolution displaying out of sync) - hacked together Venom Splasher's "no animation for central mob" - hacked in a custom packet to make Dragonfear display semi-correctly git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11491 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index d6cb74288..bb5d2a7ec 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -3739,7 +3739,7 @@ static int clif_calc_walkdelay(struct block_list *bl,int delay, int type, int da /*========================================== * Sends a 'damage' packet (src performs action on dst) * R 008a .l .l .l .l .l .w .w .B .w - * + * * type=00 damage [param1: total damage, param2: div, param3: assassin dual-wield damage] * type=01 pick up item * type=02 sit down @@ -4318,10 +4318,10 @@ int clif_skill_fail(struct map_session_data *sd,int skill_id,int type,int btype) } /*========================================== - * スキル攻撃エフェクト&ダメージ + * skill attack effect and damage + * R 01de .w .l .l .l .l .l .l .w
.w .B *------------------------------------------*/ -int clif_skill_damage(struct block_list *src,struct block_list *dst, - unsigned int tick,int sdelay,int ddelay,int damage,int div,int skill_id,int skill_lv,int type) +int clif_skill_damage(struct block_list *src,struct block_list *dst,unsigned int tick,int sdelay,int ddelay,int damage,int div,int skill_id,int skill_lv,int type) { unsigned char buf[64]; struct status_change *sc; @@ -4329,7 +4329,7 @@ int clif_skill_damage(struct block_list *src,struct block_list *dst, nullpo_retr(0, src); nullpo_retr(0, dst); - type = (type>0)?type:skill_get_hit(skill_id); + if( type == 0 ) type = skill_get_hit(skill_id); type = clif_calc_delay(type, ddelay); sc = status_get_sc(dst); @@ -4409,8 +4409,8 @@ int clif_skill_damage(struct block_list *src,struct block_list *dst, /*========================================== * 吹き飛ばしスキル攻撃エフェクト&ダメージ *------------------------------------------*/ -int clif_skill_damage2(struct block_list *src,struct block_list *dst, - unsigned int tick,int sdelay,int ddelay,int damage,int div,int skill_id,int skill_lv,int type) +/* +int clif_skill_damage2(struct block_list *src,struct block_list *dst,unsigned int tick,int sdelay,int ddelay,int damage,int div,int skill_id,int skill_lv,int type) { unsigned char buf[64]; struct status_change *sc; @@ -4463,6 +4463,7 @@ int clif_skill_damage2(struct block_list *src,struct block_list *dst, //Because the damage delay must be synced with the client, here is where the can-walk tick must be updated. [Skotlex] return clif_calc_walkdelay(dst,ddelay,type,damage,div); } +*/ /*========================================== * 支援/回復スキルエフェクト @@ -4483,14 +4484,14 @@ int clif_skill_nodamage(struct block_list *src,struct block_list *dst,int skill_ if (disguised(dst)) { WBUFL(buf,6)=-dst->id; - clif_send(buf,packet_len(0x115),dst,SELF); + clif_send(buf,packet_len(0x11a),dst,SELF); } if(src && disguised(src)) { WBUFL(buf,10)=-src->id; if (disguised(dst)) WBUFL(buf,6)=dst->id; - clif_send(buf,packet_len(0x115),src,SELF); + clif_send(buf,packet_len(0x11a),src,SELF); } return fail; -- cgit v1.2.3-70-g09d2