diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-09 19:02:47 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-09 19:02:47 +0000 |
commit | d0a7c2090946362a77301684f50e2c350b0e2218 (patch) | |
tree | 1fa1a2b8206e6383ad9e0a547b0481bd18aaaa3b /src/map/status.c | |
parent | 421688378f9093bf4cad8edd743a3209ffd3e319 (diff) | |
download | hercules-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/status.c')
-rw-r--r-- | src/map/status.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/map/status.c b/src/map/status.c index 3a3cf5351..6f3ea5770 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4099,10 +4099,6 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val val2 = 20+val1;
break;
- case SC_BLADESTOP: /* 白刃取り */
- if(val2==2) clif_bladestop((struct block_list *)val3,(struct block_list *)val4,1);
- break;
-
case SC_MOONLIT:
val2 = bl->id;
skill_setmapcell(bl,CG_MOONLIT, val1, CELL_SETMOONLIT);
@@ -5093,14 +5089,17 @@ int status_change_end( struct block_list* bl , int type,int tid ) }
break;
case SC_BLADESTOP:
+ if(sc->data[type].val4)
{
- struct status_change *tsc = status_get_sc((struct block_list *)sc->data[type].val4);
- //片方が切れたので相手の白刃?態が切れてないのなら解除
+ struct block_list *tbl = (struct block_list *)sc->data[type].val4;
+ struct status_change *tsc = status_get_sc(tbl);
+ sc->data[type].val4 = 0;
if(tsc && tsc->data[SC_BLADESTOP].timer!=-1)
- status_change_end((struct block_list *)sc->data[type].val4,SC_BLADESTOP,-1);
-
- if(sc->data[type].val2==2)
- clif_bladestop((struct block_list *)sc->data[type].val3,(struct block_list *)sc->data[type].val4,0);
+ {
+ tsc->data[SC_BLADESTOP].val4 = 0;
+ status_change_end(tbl,SC_BLADESTOP,-1);
+ }
+ clif_bladestop(bl,tbl,0);
}
break;
case SC_DANCING:
|