summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-13 22:45:57 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-13 22:45:57 +0000
commit5021e16d2bd968ad3ea0649cdee6eb7884efe65f (patch)
tree50d462c88cf60861ba6726b4cf1fdf6341b15dc4 /src/map/skill.c
parent4ba94b1074c913fc61678d06cc0e1779b7046cee (diff)
downloadhercules-5021e16d2bd968ad3ea0649cdee6eb7884efe65f.tar.gz
hercules-5021e16d2bd968ad3ea0649cdee6eb7884efe65f.tar.bz2
hercules-5021e16d2bd968ad3ea0649cdee6eb7884efe65f.tar.xz
hercules-5021e16d2bd968ad3ea0649cdee6eb7884efe65f.zip
- Corrected SG Miracle to trigger per attack, not per walked tile. Trigger rate is now 0.02%
- Corrected the warmth skills not clearing up correctly the previous field when you place another one down. - Corrected vit not affecting the HP bonus that Super Novices, Ninjas and Gunslingers get. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11193 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index f27d29298..c2aa881f4 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1600,6 +1600,10 @@ int skill_counter_additional_effect (struct block_list* src, struct block_list *
break;
}
+ if(sd && (sd->class_&MAPID_UPPERMASK) == MAPID_STAR_GLADIATOR &&
+ rand()%10000 < battle_config.sg_miracle_skill_ratio) //SG_MIRACLE [Komurka]
+ sc_start(src,SC_MIRACLE,100,1,battle_config.sg_miracle_skill_duration);
+
if(sd && skillid && attack_type&BF_MAGIC && status_isdead(bl) &&
!(skill_get_inf(skillid)&(INF_GROUND_SKILL|INF_SELF_SKILL)) &&
(rate=pc_checkskill(sd,HW_SOULDRAIN))>0
@@ -6374,6 +6378,7 @@ int skill_castend_pos2 (struct block_list *src, int x, int y, int skillid, int s
case SG_SUN_WARM:
case SG_MOON_WARM:
case SG_STAR_WARM:
+ skill_clear_unitgroup(src);
if ((sg = skill_unitsetting(src,skillid,skilllv,src->x,src->y,0)))
sc_start4(src,type,100,skilllv,0,0,(int)sg,skill_get_time(skillid,skilllv));
flag|=1;