diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-10 21:26:12 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-10 21:26:12 +0000 |
commit | 852633e420ed06e806ed8fd9e02ee3038b6b1f13 (patch) | |
tree | 08d5b5aa8b09a073b97f3b344812ca6eab0540ab /src/map/skill.c | |
parent | 5d8d40de3112a62e3462c75f138ff675edf91459 (diff) | |
download | hercules-852633e420ed06e806ed8fd9e02ee3038b6b1f13.tar.gz hercules-852633e420ed06e806ed8fd9e02ee3038b6b1f13.tar.bz2 hercules-852633e420ed06e806ed8fd9e02ee3038b6b1f13.tar.xz hercules-852633e420ed06e806ed8fd9e02ee3038b6b1f13.zip |
Fixed a bug in r11384 letting you bypass requirements for some skills (see bugreport:219).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11710 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 943548c91..c929de450 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -7801,17 +7801,6 @@ int skill_check_condition(struct map_session_data* sd, short skill, short lv, in if(!sc || sc->data[SC_COMBO].timer == -1 || sc->data[SC_COMBO].val1 != skill) return 0; break; - case AM_BERSERKPITCHER: - case AM_POTIONPITCHER: - case CR_SLIMPITCHER: - case MG_STONECURSE: - case CR_CULTIVATION: - case SA_FLAMELAUNCHER: - case SA_FROSTWEAPON: - case SA_LIGHTNINGLOADER: - case SA_SEISMICWEAPON: - delitem_flag = 0; - break; case SA_DELUGE: case SA_VOLCANO: case SA_VIOLENTGALE: @@ -8094,7 +8083,7 @@ int skill_check_condition(struct map_session_data* sd, short skill, short lv, in } if(!(type&1)) - return 1; + return 1; // consumption only happens on cast-end if( delitem_flag ) { |