From c1d9520019962606aded15fed239b5021be0dae8 Mon Sep 17 00:00:00 2001 From: aleos89 Date: Mon, 31 Oct 2016 17:08:44 -0400 Subject: [PATCH] Added an extra ammo requirement for specific skills (fixes #1683) * Severe Rainstorm, Round Trip, and Fire Rain now require +1 to their ammo requirement in order to successfully cast the skill. * These skills will still consume their normal ammo amount. Thanks to Fyrus for data mining! --- src/map/skill.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/map/skill.c b/src/map/skill.c index b7b5860b41..97d0239939 100755 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -15686,10 +15686,23 @@ bool skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id, } if( require.ammo ) { //Skill requires stuff equipped in the ammo slot. + uint8 extra_ammo = 0; + +#ifdef RENEWAL + switch(skill_id) { // 2016-10-26 kRO update made these skills require an extra ammo to cast + case WM_SEVERE_RAINSTORM: + case RL_R_TRIP: + case RL_FIRE_RAIN: + extra_ammo = 1; + break; + default: + break; + } +#endif if((i=sd->equip_index[EQI_AMMO]) < 0 || !sd->inventory_data[i] ) { clif_arrow_fail(sd,0); return false; - } else if( sd->status.inventory[i].amount < require.ammo_qty ) { + } else if( sd->status.inventory[i].amount < require.ammo_qty + extra_ammo ) { char e_msg[100]; if (require.ammo&(1<