summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-06 14:07:21 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-06 14:07:21 +0000
commitb1b0860d1ca7e0f9ddb57756be9af11d9557d555 (patch)
tree54847788efa9f24a2988e00954371adcbd2235ed /src/map/skill.c
parentef20f0c5e0fc581552ff26c50fd84e44d60465a6 (diff)
downloadhercules-b1b0860d1ca7e0f9ddb57756be9af11d9557d555.tar.gz
hercules-b1b0860d1ca7e0f9ddb57756be9af11d9557d555.tar.bz2
hercules-b1b0860d1ca7e0f9ddb57756be9af11d9557d555.tar.xz
hercules-b1b0860d1ca7e0f9ddb57756be9af11d9557d555.zip
- Fixed the auto-direction code which makes self-skills with ground units become a ground spell using the wrong function for said check. In short: fixed GrandCross and similar skills.
- FogWall will now also affect the caster. - Some cleanup of map.h. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7548 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index f15501287..b87575768 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3173,7 +3173,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
case NJ_BAKUENRYU: //Doesn't works on the default because it is enemy-targetted.
return skill_castend_pos2(src,bl->x,bl->y,skillid,skilllv,tick,0);
default:
- if (src == bl && skill_get_unit_flag(skillid)) //Skill is actually ground placed.
+ if (src == bl && skill_get_unit_id(skillid,0)) //Skill is actually ground placed.
return skill_castend_pos2(src,bl->x,bl->y,skillid,skilllv,tick,0);
}
@@ -6634,8 +6634,6 @@ int skill_unit_onplace (struct skill_unit *src, struct block_list *bl, unsigned
}
break;
case UNT_FOGWALL:
- if (sg->src_id==bl->id)
- return 0;
if (sc && sc->data[type].timer==-1)
{
sc_start4(bl, type, 100, sg->skill_lv, sg->val1, sg->val2, sg->group_id, sg->limit);