diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-05 20:39:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-12 02:29:12 +0300 |
commit | 6e0ecf794b95405f70d27e676a03153fc2c2b862 (patch) | |
tree | 8e05633579dc714b6afbd5e43eb512e4a58a0dd3 /src/map/battle.c | |
parent | c6871ff29e0e6d58f6915aafaf1b86e464aae623 (diff) | |
download | hercules-6e0ecf794b95405f70d27e676a03153fc2c2b862.tar.gz hercules-6e0ecf794b95405f70d27e676a03153fc2c2b862.tar.bz2 hercules-6e0ecf794b95405f70d27e676a03153fc2c2b862.tar.xz hercules-6e0ecf794b95405f70d27e676a03153fc2c2b862.zip |
Split btype and item_id parameters in function clif_skill_fail.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 172f9083f..e571977fe 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -6108,7 +6108,7 @@ static bool battle_check_arrows(struct map_session_data *sd) int index = sd->equip_index[EQI_AMMO]; if (index < 0) { if (sd->weapontype1 > W_KATAR && sd->weapontype1 < W_HUUMA) - clif->skill_fail(sd, 0, USESKILL_FAIL_NEED_MORE_BULLET, 0); + clif->skill_fail(sd, 0, USESKILL_FAIL_NEED_MORE_BULLET, 0, 0); else clif->arrow_fail(sd, 0); return false; @@ -6127,13 +6127,13 @@ static bool battle_check_arrows(struct map_session_data *sd) case W_GATLING: case W_SHOTGUN: if (sd->inventory_data[index]->subtype != A_BULLET) { - clif->skill_fail(sd, 0, USESKILL_FAIL_NEED_MORE_BULLET, 0); + clif->skill_fail(sd, 0, USESKILL_FAIL_NEED_MORE_BULLET, 0, 0); return false; } break; case W_GRENADE: if (sd->inventory_data[index]->subtype != A_GRENADE) { - clif->skill_fail(sd, 0, USESKILL_FAIL_NEED_MORE_BULLET, 0); + clif->skill_fail(sd, 0, USESKILL_FAIL_NEED_MORE_BULLET, 0, 0); return false; } break; @@ -6401,7 +6401,7 @@ static enum damage_lv battle_weapon_attack(struct block_list *src, struct block_ } if( type != CAST_GROUND ) { - clif->skill_fail(sd,r_skill,USESKILL_FAIL_LEVEL,0); + clif->skill_fail(sd, r_skill, USESKILL_FAIL_LEVEL, 0, 0); map->freeblock_unlock(); return wd.dmg_lv; } |