summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-23 02:04:29 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-23 02:04:29 +0000
commit445a5a2282d1beddd88eeeae48a048d1748dd85d (patch)
treea0b0ddfd72a42c0c1c54499af2a5f379c4aef2e6 /src/map/skill.c
parent2b2dbf43f11aecf778ff118dd1da1af9726f36e6 (diff)
downloadhercules-445a5a2282d1beddd88eeeae48a048d1748dd85d.tar.gz
hercules-445a5a2282d1beddd88eeeae48a048d1748dd85d.tar.bz2
hercules-445a5a2282d1beddd88eeeae48a048d1748dd85d.tar.xz
hercules-445a5a2282d1beddd88eeeae48a048d1748dd85d.zip
- Added a few missing skill fail messages on cast-end-pos skills.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11787 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 4bc847560..08e87232b 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5422,14 +5422,18 @@ int skill_castend_pos (int tid, unsigned int tick, int id, int data)
skill_get_unit_flag(ud->skillid)&UF_NOREITERATION &&
skill_check_unit_range(src,ud->skillx,ud->skilly,ud->skillid,ud->skilllv)
)
+ {
+ if (sd) clif_skill_fail(sd,ud->skillid,0,0);
break;
-
+ }
if( src->type&battle_config.skill_nofootset &&
skill_get_unit_flag(ud->skillid)&UF_NOFOOTSET &&
skill_check_unit_range2(src,ud->skillx,ud->skilly,ud->skillid,ud->skilllv)
)
+ {
+ if (sd) clif_skill_fail(sd,ud->skillid,0,0);
break;
-
+ }
if( src->type&battle_config.land_skill_limit &&
(maxcount = skill_get_maxcount(ud->skillid, ud->skilllv)) > 0
) {
@@ -5439,7 +5443,10 @@ int skill_castend_pos (int tid, unsigned int tick, int id, int data)
maxcount--;
}
if( maxcount == 0 )
+ {
+ if (sd) clif_skill_fail(sd,ud->skillid,0,0);
break;
+ }
}
if(tid != -1)