diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-04 17:55:26 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-04 17:55:26 +0000 |
commit | 163426a80f31a7d3fb4fa5878a7afbafff032345 (patch) | |
tree | d0edfca727c0d0b8e4f4a542a8b3ede02fe06728 /src/map/skill.c | |
parent | b95dffc4e9c9530fd301273888db270e8e365fe6 (diff) | |
download | hercules-163426a80f31a7d3fb4fa5878a7afbafff032345.tar.gz hercules-163426a80f31a7d3fb4fa5878a7afbafff032345.tar.bz2 hercules-163426a80f31a7d3fb4fa5878a7afbafff032345.tar.xz hercules-163426a80f31a7d3fb4fa5878a7afbafff032345.zip |
- bonus3 autospell (and autospell when hit) will now select for spell target self when the skill is tagged a support skill.
- Increased the amount of autospells that can be held at a time from 10 to 15
- Updated several item scripts to use bonus3 autospells rather than bonus4 ones.
- Changed the "autocasted strip skills don't have a duration" to apply only to Full Strip.
- Cleaned up some the Signum Crucis code.
- Added initialization of hp_loss/sp_loss/hp_regen/sp_regen which somehow was not commited before.
- Magic Mirror's duration now is reduced /15 when used on players.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11124 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 679753f2f..9c0ac2f46 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -3562,12 +3562,9 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in break; case AL_CRUCIS: - if (flag & 1) { - if (battle_check_target (src, bl, BCT_ENEMY)) - sc_start(bl,type, - 23+skilllv*4 +status_get_lv(src) -status_get_lv(bl), - skilllv,60000); - } else { + if (flag&1) + sc_start(bl,type, 23+skilllv*4 +status_get_lv(src) -status_get_lv(bl), skilllv,60000); + else { map_foreachinrange(skill_area_sub, src, skill_get_splash(skillid, skilllv), BL_CHAR, src, skillid, skilllv, tick, flag|BCT_ENEMY|1, skill_castend_nodamage_id); clif_skill_nodamage(src, bl, skillid, skilllv, 1); @@ -4604,10 +4601,10 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in type = EQP_WEAPON|EQP_SHIELD|EQP_ARMOR|EQP_HELM; break; } - //Note that autospells don't use a duration + //Note that Full Strip autospell doesn't use a duration if (!clif_skill_nodamage(src,bl,skillid,skilllv, skill_strip_equip(bl, type, i, skilllv, - sd&&!pc_checkskill(sd, skillid)?0:skill_get_time(skillid,skilllv))) + sd&&skillid==ST_FULLSTRIP&&!pc_checkskill(sd, skillid)?0:skill_get_time(skillid,skilllv))) && sd) clif_skill_fail(sd,skillid,0,0); //Nothing stripped. break; |