Skip to content

Commit

Permalink
Revert the changes in scope. thanks @dastgir.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jedzkie committed Jan 6, 2016
1 parent f779630 commit 756be98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -14072,11 +14072,12 @@ int skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id,
}
case NC_SILVERSNIPER:
case NC_MAGICDECOY: {
int j, c = 0;
int c = 0;
int maxcount = skill->get_maxcount(skill_id,skill_lv);

if( battle_config.land_skill_limit && maxcount > 0 && ( battle_config.land_skill_limit&BL_PC ) ) {
if (skill_id == NC_MAGICDECOY) {
int j;
for (j = MOBID_MAGICDECOY_FIRE; j <= MOBID_MAGICDECOY_WIND; j++)
map->foreachinmap(skill->check_condition_mob_master_sub, sd->bl.m, BL_MOB, sd->bl.id, j, skill_id, &c);
} else {
Expand Down

0 comments on commit 756be98

Please sign in to comment.