summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorcodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-26 04:15:42 +0000
committercodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-26 04:15:42 +0000
commitd112ed42658f396eb0b14f1585b589d432603752 (patch)
treed3a4b472b958ad73f49a57c5f909fc6065ea2147 /src/map
parentd944e1b20e85f474ed4f08d4a9caf747b80bd51e (diff)
downloadhercules-d112ed42658f396eb0b14f1585b589d432603752.tar.gz
hercules-d112ed42658f396eb0b14f1585b589d432603752.tar.bz2
hercules-d112ed42658f396eb0b14f1585b589d432603752.tar.xz
hercules-d112ed42658f396eb0b14f1585b589d432603752.zip
- 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
Diffstat (limited to 'src/map')
-rw-r--r--src/map/skill.c13
1 files changed, 8 insertions, 5 deletions
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: /* メテオアサルト */