diff options
author | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-20 20:24:13 +0000 |
---|---|---|
committer | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-20 20:24:13 +0000 |
commit | 4a440b794f190b5feed86f7c21fd02133164b1f6 (patch) | |
tree | 090c0f4430c3c76b5545b87a6b052639807fe730 /src/map/skill.c | |
parent | 6aeb035c372488df8b3775f8258c49772e682167 (diff) | |
download | hercules-4a440b794f190b5feed86f7c21fd02133164b1f6.tar.gz hercules-4a440b794f190b5feed86f7c21fd02133164b1f6.tar.bz2 hercules-4a440b794f190b5feed86f7c21fd02133164b1f6.tar.xz hercules-4a440b794f190b5feed86f7c21fd02133164b1f6.zip |
- Added clif_skill_fail for homunc to skill_castend_id & skill_castend_pos ('skill has failed' will may be appear 2 times)
- Fixed homunc skill 8016 not considered as homunc skill
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8386 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index f69a0dcce..8e2c9e44a 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -5814,13 +5814,19 @@ int skill_castend_id (int tid, unsigned int tick, int id, int data) clif_slide(src,src->x,src->y); clif_skill_damage(src,target,tick,sd->battle_status.amotion,0,0,1,ud->skillid, ud->skilllv, 5); } - clif_skill_fail(sd,ud->skillid,0,0); } } ud->skillid = ud->skilllv = ud->skilltarget = 0; ud->canact_tick = tick; - if(sd) sd->skillitem = sd->skillitemlv = -1; - if(md) md->skillidx = -1; + if(sd) + { + sd->skillitem = sd->skillitemlv = -1; + clif_skill_fail(sd, ud->skillid, 0, 0); + } + else if (hd) + clif_skill_fail(hd->master, ud->skillid, 0, 0); + else if(md) + md->skillidx = -1; return 0; } @@ -5935,7 +5941,10 @@ int skill_castend_pos (int tid, unsigned int tick, int id, int data) clif_skill_fail(sd,ud->skillid,0,0); sd->skillitem = sd->skillitemlv = -1; } - if(md) md->skillidx = -1; + else if (hd) + clif_skill_fail(hd->master, ud->skillid, 0, 0); + else if(md) + md->skillidx = -1; return 0; } |