summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-05 18:35:41 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-05 18:35:41 +0000
commitbe333fef8f4e91bebd76d0fb1c6ca714915d5dbb (patch)
tree6d563cc846d8611af820f1b86c7367b2e09e4091 /src/map/skill.c
parentf97561eb2ee94d591170e1f578c0cf736669b210 (diff)
downloadhercules-be333fef8f4e91bebd76d0fb1c6ca714915d5dbb.tar.gz
hercules-be333fef8f4e91bebd76d0fb1c6ca714915d5dbb.tar.bz2
hercules-be333fef8f4e91bebd76d0fb1c6ca714915d5dbb.tar.xz
hercules-be333fef8f4e91bebd76d0fb1c6ca714915d5dbb.zip
- Fog of Wall won't affect the caster now in any way.
- Added a missing status_calc_mob on mob_spawn_guardian_sub - Added clif_fixpos packets before attacking for the first time to clear any position sync issues with the client. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6985 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-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 25601dc56..b057f256b 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6570,8 +6570,7 @@ int skill_unit_onplace(struct skill_unit *src,struct block_list *bl,unsigned int
case UNT_SERVICEFORYOU:
if (sg->src_id==bl->id && (!sc || sc->data[SC_SPIRIT].timer == -1 || sc->data[SC_SPIRIT].val2 != SL_BARDDANCER))
return 0;
- if (!sc)
- break;
+ if (!sc) return 0;
if (sc->data[type].timer==-1)
sc_start4(bl,type,100,sg->skill_lv,sg->val1,sg->val2,0,sg->limit);
else if (sc->data[type].val4 == 1) {
@@ -6582,6 +6581,8 @@ int skill_unit_onplace(struct skill_unit *src,struct block_list *bl,unsigned int
}
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);