summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-01 16:29:09 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-01 16:29:09 +0000
commit5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5 (patch)
tree8b939dc7ae15919ef14fb666214fbfb5347de2ec /src/map/skill.c
parent312f6f88f6ad557924669557bfc41383f4d22e3f (diff)
downloadhercules-5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5.tar.gz
hercules-5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5.tar.bz2
hercules-5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5.tar.xz
hercules-5cb60d195ab9ce1fe6edc9bc8d2d39f13fd129e5.zip
- 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
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c8
1 files changed, 8 insertions, 0 deletions
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: