From d112ed42658f396eb0b14f1585b589d432603752 Mon Sep 17 00:00:00 2001 From: codemaster Date: Fri, 26 Nov 2004 04:15:42 +0000 Subject: - Updated Spider Web so that you cannot use it on yourself git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@362 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/map/skill.c b/src/map/skill.c index 4ced6ac61..932542365 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1274,11 +1274,14 @@ int skill_additional_effect( struct block_list* src, struct block_list *bl,int s break; case PF_SPIDERWEB: /* スパイダ?ウェッブ */ { - int sec=skill_get_time2(skillid,skilllv); - if(map[src->m].flag.pvp) //PvPでは拘束時間半減? - sec = sec/2; - battle_stopwalking(bl,1); - skill_status_change_start(bl,SC_SPIDERWEB,skilllv,0,0,0,sec,0); + if(bl->type == BL_MOB) + { + int sec=skill_get_time2(skillid,skilllv); + if(map[src->m].flag.pvp) //PvPでは拘束時間半減? + sec = sec/2; + battle_stopwalking(bl,1); + skill_status_change_start(bl,SC_SPIDERWEB,skilllv,0,0,0,sec,0); + } } break; case ASC_METEORASSAULT: /* メテオアサルト */ -- cgit v1.2.3-70-g09d2