summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorMasterOfMuppets <MasterOfMuppets@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-16 23:05:49 +0000
committerMasterOfMuppets <MasterOfMuppets@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-16 23:05:49 +0000
commit9fbb96bcba9890e321a89153d098bc983ad503c4 (patch)
treec40ef8381d5f86c74900c236546bdb95312b5e1b /src/map/skill.c
parent1edfd8d7a943b235cbeed709404545699850ed38 (diff)
downloadhercules-9fbb96bcba9890e321a89153d098bc983ad503c4.tar.gz
hercules-9fbb96bcba9890e321a89153d098bc983ad503c4.tar.bz2
hercules-9fbb96bcba9890e321a89153d098bc983ad503c4.tar.xz
hercules-9fbb96bcba9890e321a89153d098bc983ad503c4.zip
A small fix.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5633 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index e094ac595..222111f6a 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3117,7 +3117,10 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl,int s
}
break;
case NJ_ZENYNAGE:
- skill_attack(BF_MISC,src,src,bl,skillid,skilllv,tick,flag);
+ if(sd->status.zeny < skilllv*1000)
+ clif_skill_fail(sd,skillid,5,0);
+ else
+ skill_attack(BF_MISC,src,src,bl,skillid,skilllv,tick,flag);
break;
case NJ_KASUMIKIRI:
skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag);