summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c13
-rw-r--r--src/map/unit.c3
2 files changed, 2 insertions, 14 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 )
{
diff --git a/src/map/unit.c b/src/map/unit.c
index 6fd7ce871..7d75d6e70 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1094,8 +1094,7 @@ int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, sh
sc = NULL;
if(sd) {
- if (skillnotok(skill_num, sd) ||
- !skill_check_condition(sd, skill_num, skill_lv,0))
+ if (skillnotok(skill_num, sd) || !skill_check_condition(sd, skill_num, skill_lv,0))
return 0;
}