diff options
author | Jedzkie <jedzkie13@rocketmail.com> | 2016-01-06 20:37:36 +0800 |
---|---|---|
committer | Jedzkie <jedzkie13@rocketmail.com> | 2016-01-06 20:37:36 +0800 |
commit | 756be9835054a3b2b8ebace388546fa15ffd4a92 (patch) | |
tree | 483c7a515869bb3a2e7abd5b11095c09adb0761f /src/map | |
parent | f779630064ce8dbe113826cc780f95f55d955f0c (diff) | |
download | hercules-756be9835054a3b2b8ebace388546fa15ffd4a92.tar.gz hercules-756be9835054a3b2b8ebace388546fa15ffd4a92.tar.bz2 hercules-756be9835054a3b2b8ebace388546fa15ffd4a92.tar.xz hercules-756be9835054a3b2b8ebace388546fa15ffd4a92.zip |
Revert the changes in scope. thanks @dastgir.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 872c1ef4c..5462340db 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -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 { |