diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-01-24 08:15:25 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-02-09 23:53:14 +0100 |
commit | 6e2e6a353ba7a0ff1a82b1e8acca6950ae3e47a1 (patch) | |
tree | dbd03ef98c352b7f0267ea82c578705d3ca08243 | |
parent | 00e0cde38bcc488d57ea2d1633e0b3a980ac90b6 (diff) | |
download | hercules-6e2e6a353ba7a0ff1a82b1e8acca6950ae3e47a1.tar.gz hercules-6e2e6a353ba7a0ff1a82b1e8acca6950ae3e47a1.tar.bz2 hercules-6e2e6a353ba7a0ff1a82b1e8acca6950ae3e47a1.tar.xz hercules-6e2e6a353ba7a0ff1a82b1e8acca6950ae3e47a1.zip |
Implemented the consumption of 10 SP when using Earth Spike Scroll while SC_EARTHSCROLL is active.
-rw-r--r-- | src/map/skill.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; @@ -15220,6 +15218,11 @@ static int skill_consume_requirement(struct map_session_data *sd, uint16 skill_i 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] req.sp = 0; |