Reset all skill variables if the skill fails so certain skills can't be abused

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@910 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
celest 2005-01-05 07:36:22 +00:00
parent 9dc66f57e6
commit e774f8c641
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,7 @@
Date Added
01/05
* Reset all skill variables if the skill fails so certain skills can't be
abused (such as Warp, thanks to Alex14 for pointing it out) [celest]
* Added /mapflag/noreturn.txt for disabling butterfly wings (not fly wings)
[celest]
* Fixed skill_require_db reading somehow getting corrupted if weapons usable

View File

@ -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;
}