diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-24 16:49:25 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-24 16:49:25 +0000 |
commit | a06301e47be21176c4b553d7abb3ef5db7f72945 (patch) | |
tree | 8d19f0783f1d71a11c336cfe9e35a1e83eb10645 /src/map/skill.c | |
parent | 4f8feb79e16e222a71d4fb3b057688ca8285d002 (diff) | |
download | hercules-a06301e47be21176c4b553d7abb3ef5db7f72945.tar.gz hercules-a06301e47be21176c4b553d7abb3ef5db7f72945.tar.bz2 hercules-a06301e47be21176c4b553d7abb3ef5db7f72945.tar.xz hercules-a06301e47be21176c4b553d7abb3ef5db7f72945.zip |
added cart dupe-proof for named / cards items
removed unusef check_cloak_type func
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1173 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 0b118eb96..ee05cc2c4 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -8036,25 +8036,6 @@ int skill_check_cloaking(struct block_list *bl) return end; } -int skill_type_cloaking(struct block_list *bl) -{ - static int dx[]={ 0, 1, 0, -1, -1, 1, 1, -1}; //optimized by Lupus - static int dy[]={-1, 0, 1, 0, -1, -1, 1, 1}; - int i; - - nullpo_retr(0, bl); - if(bl->type == BL_PC && battle_config.pc_cloak_check_type&1) - return 0; - else if(bl->type == BL_MOB && battle_config.monster_cloak_check_type&1) - return 0; - for(i=0; i<sizeof(dx)/sizeof(dx[0]); i++) - { - if(map_getcell(bl->m,bl->x+dx[i],bl->y+dy[i],CELL_CHKNOPASS)) - return 0; - } - return 1; -} - /* *---------------------------------------------------------------------------- * スキルユニット |