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:
parent
9dc66f57e6
commit
e774f8c641
@ -1,5 +1,7 @@
|
|||||||
Date Added
|
Date Added
|
||||||
01/05
|
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)
|
* Added /mapflag/noreturn.txt for disabling butterfly wings (not fly wings)
|
||||||
[celest]
|
[celest]
|
||||||
* Fixed skill_require_db reading somehow getting corrupted if weapons usable
|
* Fixed skill_require_db reading somehow getting corrupted if weapons usable
|
||||||
|
|||||||
@ -4315,6 +4315,11 @@ int clif_skill_fail(struct map_session_data *sd,int skill_id,int type,int btype)
|
|||||||
|
|
||||||
fd=sd->fd;
|
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){
|
if(type==0x4 && battle_config.display_delay_skill_fail==0){
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user