diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-05 07:36:22 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-05 07:36:22 +0000 |
commit | 2d82d89f7405a977262e13de3f0985e7792cc9a7 (patch) | |
tree | 837df408b23c5078c01bfe5ad7be523fc7d104be /src/map/clif.c | |
parent | b88b28bc1b4f6556a6c2f0d85851010446082c3b (diff) | |
download | hercules-2d82d89f7405a977262e13de3f0985e7792cc9a7.tar.gz hercules-2d82d89f7405a977262e13de3f0985e7792cc9a7.tar.bz2 hercules-2d82d89f7405a977262e13de3f0985e7792cc9a7.tar.xz hercules-2d82d89f7405a977262e13de3f0985e7792cc9a7.zip |
Reset all skill variables if the skill fails so certain skills can't be abused
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@910 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index e0d76a756..af89df654 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4315,6 +4315,11 @@ int clif_skill_fail(struct map_session_data *sd,int skill_id,int type,int btype) fd=sd->fd; + // reset all variables [celest] + sd->skillx = sd->skilly = -1; + sd->skillid = sd->skilllv = -1; + sd->skillitem = sd->skillitemlv = -1; + if(type==0x4 && battle_config.display_delay_skill_fail==0){ return 0; } |