Skip to content

Commit

Permalink
Make skills cast by Improvised Song ignore all requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenpachi2k13 committed Mar 14, 2020
1 parent 7c6e21a commit 876cfa6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -14058,8 +14058,8 @@ static int skill_check_condition_castbegin(struct map_session_data *sd, uint16 s
if (sd->chat_id != 0)
return 0;

if ((sd->autocast.itemskill_conditions_checked || !sd->autocast.itemskill_check_conditions)
&& sd->autocast.type == AUTOCAST_ITEM) {
if (((sd->autocast.itemskill_conditions_checked || !sd->autocast.itemskill_check_conditions)
&& sd->autocast.type == AUTOCAST_ITEM) || sd->autocast.type == AUTOCAST_IMPROVISE) {
return 1;
}

Expand Down Expand Up @@ -15024,8 +15024,8 @@ static int skill_check_condition_castend(struct map_session_data *sd, uint16 ski
if (sd->chat_id != 0)
return 0;

if ((sd->autocast.itemskill_conditions_checked || !sd->autocast.itemskill_check_conditions)
&& sd->autocast.type == AUTOCAST_ITEM) {
if (((sd->autocast.itemskill_conditions_checked || !sd->autocast.itemskill_check_conditions)
&& sd->autocast.type == AUTOCAST_ITEM) || sd->autocast.type == AUTOCAST_IMPROVISE) {
return 1;
}

Expand Down Expand Up @@ -15230,8 +15230,10 @@ static int skill_consume_requirement(struct map_session_data *sd, uint16 skill_i

nullpo_ret(sd);

if (!sd->autocast.itemskill_check_conditions && sd->autocast.type == AUTOCAST_ITEM)
if ((!sd->autocast.itemskill_check_conditions && sd->autocast.type == AUTOCAST_ITEM)
|| sd->autocast.type == AUTOCAST_IMPROVISE) {
return 1;
}

req = skill->get_requirement(sd,skill_id,skill_lv);

Expand Down

0 comments on commit 876cfa6

Please sign in to comment.