From 6e2e6a353ba7a0ff1a82b1e8acca6950ae3e47a1 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Fri, 24 Jan 2020 08:15:25 +0100 Subject: Implemented the consumption of 10 SP when using Earth Spike Scroll while SC_EARTHSCROLL is active. --- src/map/skill.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/skill.c b/src/map/skill.c index 2b4f87a11..e8cab751e 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -14062,8 +14062,6 @@ static int skill_check_condition_castbegin(struct map_session_data *sd, uint16 s * - No skill casting item should be of type IT_DELAYCONSUME, they are all consumed immediately, even before the skill cursor appears. * The WZ_EARTHSPIKE check for TK_SPTIME skill should be moved to pc_useitem(), once the type of all skill casting items is updated. * - * - The consumption of 10 SP when using Earth_Scroll_1_3 or Earth_Scroll_1_5 while SC_EARTHSCROLL is active needs to be implemented. - * **/ //Consume sd->itemid = sd->itemindex = -1; @@ -15219,6 +15217,11 @@ static int skill_consume_requirement(struct map_session_data *sd, uint16 skill_i case CG_TAROTCARD: // TarotCard will consume sp in skill_cast_nodamage_id [Inkfish] case MC_IDENTIFY: req.sp = 0; + break; + case WZ_EARTHSPIKE: + if (sd->sc.count > 0 && sd->sc.data[SC_EARTHSCROLL] != NULL) // If Earth Spike Scroll is used while SC_EARTHSCROLL is active, 10 SP are consumed. [Kenpachi] + req.sp = 10; + break; default: if (sd->state.autocast == 1 || sd->skillitem == skill_id) /// Skill casting items and Hocus-Pocus skills don't consume SP. [Kenpachi] -- cgit v1.2.3-70-g09d2