From 5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 1 Mar 2007 16:29:09 +0000 Subject: - Updated the stun length to 5 secs of: Meteor Storm, Sonic Blow, Throw Stone, Sightless Raid, Smite, Cart Termination - SG Union will consume now SP if you use it while not soul linked. - Added variable "skip" to the mob spawn data, to know how many mobs to skip when spawning because they were not removed due to the "mob_remove_damaged" setting. - Corrected the Hp/Sp regen formulas from Hp/Sp/Spirit Recovery and Happy/Peaceful break according to recent forums discussions (formula is changed from x*lv +max*lv/500 to lv*(x+max/500). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9944 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index 8e2953705..5b250bbca 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -8331,6 +8331,14 @@ int skill_check_condition (struct map_session_data *sd, int skill, int lv, int t return 1; if (sc && sc->data[SC_SPIRIT].timer != -1 && sc->data[SC_SPIRIT].val2 == SL_STAR) break; + //Auron insists we should implement SP consumption when you are not Soul Linked. [Skotlex] + if(sp>0 && type&1) + { + if (status->sp < (unsigned int)sp) + clif_skill_fail(sd,skill,1,0); + else + status_zap(&sd->bl, 0, sp); + } return 0; case GD_BATTLEORDER: case GD_REGENERATION: -- cgit v1.2.3-60-g2f50