summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-31 02:50:17 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-31 02:50:17 +0000
commit435aebaf32d68a95df8dd609c7b82fd7f9b420e9 (patch)
treed5127bac1979c8b66c50384323c40a1c9f4ec63d /src/map
parent5b4318c32a7ba2337241b4ecb074596f4069b3ef (diff)
downloadhercules-435aebaf32d68a95df8dd609c7b82fd7f9b420e9.tar.gz
hercules-435aebaf32d68a95df8dd609c7b82fd7f9b420e9.tar.bz2
hercules-435aebaf32d68a95df8dd609c7b82fd7f9b420e9.tar.xz
hercules-435aebaf32d68a95df8dd609c7b82fd7f9b420e9.zip
- NPC_INVISIBLE will now use Cloaking of a level +9 of the used skill level, so that at level 1 they can attack, use skills and receive no walking penalty.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7989 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/skill.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index e9806d666..c39013d5a 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -4964,9 +4964,10 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
break;
case NPC_INVISIBLE:
- //val4 passed as 1 is for "infinite cloak".
+ //On level 1, use level 10 cloaking (no speed penalty)
+ //with val4 passed as 1 is for "infinite cloak".
clif_skill_nodamage(src,bl,skillid,skilllv,
- sc_start4(bl,type,100,skilllv,0,0,1,skill_get_time(skillid,skilllv)));
+ sc_start4(bl,type,100,9+skilllv,0,0,1,skill_get_time(skillid,skilllv)));
break;
case NPC_SIEGEMODE: