summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-09 19:02:47 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-09 19:02:47 +0000
commitd0a7c2090946362a77301684f50e2c350b0e2218 (patch)
tree1fa1a2b8206e6383ad9e0a547b0481bd18aaaa3b /src/map/battle.c
parent421688378f9093bf4cad8edd743a3209ffd3e319 (diff)
downloadhercules-d0a7c2090946362a77301684f50e2c350b0e2218.tar.gz
hercules-d0a7c2090946362a77301684f50e2c350b0e2218.tar.bz2
hercules-d0a7c2090946362a77301684f50e2c350b0e2218.tar.xz
hercules-d0a7c2090946362a77301684f50e2c350b0e2218.zip
- Cleaned up somewhat the implementation of BladeStop.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6531 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 045e7ed90..0c9724266 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3122,13 +3122,14 @@ int battle_weapon_attack( struct block_list *src,struct block_list *target,
int skilllv = tsc->data[SC_BLADESTOP_WAIT].val1;
int duration = skill_get_time2(MO_BLADESTOP,skilllv);
status_change_end(target, SC_BLADESTOP_WAIT, -1);
- clif_damage(src, target, tick, status_get_amotion(src), 1, 0, 1, 0, 0); //Display MISS.
- sc_start4(target, SC_BLADESTOP, 100, skilllv, 2, (int)target, (int)src, duration);
- skilllv = sd?pc_checkskill(sd, MO_BLADESTOP):1;
- sc_start4(src, SC_BLADESTOP, 100, skilllv, 1, (int)src, (int)target, duration);
- return 0;
+ if(sc_start4(src, SC_BLADESTOP, 100, sd?pc_checkskill(sd, MO_BLADESTOP):5, 0, 0, (int)target, duration))
+ { //Target locked.
+ clif_damage(src, target, tick, status_get_amotion(src), 1, 0, 1, 0, 0); //Display MISS.
+ clif_bladestop(target,src,1);
+ sc_start4(target, SC_BLADESTOP, 100, skilllv, 0, 0,(int)src, duration);
+ return 0;
+ }
}
-
}
//Recycled the damage variable rather than use a new one... [Skotlex]
if(sd && (damage = pc_checkskill(sd,MO_TRIPLEATTACK)) > 0) // triple blow works with bows ^^ [celest]