summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-20 12:42:06 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-20 12:42:06 +0000
commit9847103a4169a5593a1da851d8f0823a158694b9 (patch)
tree5fc4cfcb6c70a7a10320f4f7ebbfdea10cd9cbdf /src/map/status.c
parent701fc9b87e2688f357ac3fde17c0970def7d68ed (diff)
downloadhercules-9847103a4169a5593a1da851d8f0823a158694b9.tar.gz
hercules-9847103a4169a5593a1da851d8f0823a158694b9.tar.bz2
hercules-9847103a4169a5593a1da851d8f0823a158694b9.tar.xz
hercules-9847103a4169a5593a1da851d8f0823a158694b9.zip
* Now fiberlocking a fiberlocked target doesn't renew the timer but instead increases its fireweakness [Inkfish]
- This makes doublecasting firebolts on a double fiberlocked target having double damage from both 2 bolts possible = =(bugreport:3061) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13799 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 8f09203d4..802b5181e 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3535,7 +3535,7 @@ static signed short status_calc_flee(struct block_list *bl, struct status_change
flee += sc->data[SC_MOON_COMFORT]->val2;
if(sc->data[SC_CLOSECONFINE])
flee += 10;
- if(sc->data[SC_SPIDERWEB])
+ if(sc->data[SC_SPIDERWEB] && sc->data[SC_SPIDERWEB]->val1)
flee -= flee * 50/100;
if(sc->data[SC_BERSERK])
flee -= flee * 50/100;
@@ -5814,8 +5814,9 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
tick /= 5; //TODO: Reduce skill's duration. But for how long?
break;
case SC_SPIDERWEB:
- if (bl->type == BL_PC)
- tick /=2;
+ if( bl->type == BL_PC )
+ tick /= 2;
+ val1 = val2 = 1;
break;
case SC_ARMOR:
//NPC_DEFENDER: