summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-16 10:50:03 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-16 10:50:03 +0000
commit9b6b0a2b79ad09a1d81cc1929167cbcf4d5e36de (patch)
tree8ad1b0fd2dbaa60fcedce80975d03664b713ae2c /src/map/skill.c
parent9babe46efb2a08fdce5829638e9c5a5a9e9886d7 (diff)
downloadhercules-9b6b0a2b79ad09a1d81cc1929167cbcf4d5e36de.tar.gz
hercules-9b6b0a2b79ad09a1d81cc1929167cbcf4d5e36de.tar.bz2
hercules-9b6b0a2b79ad09a1d81cc1929167cbcf4d5e36de.tar.xz
hercules-9b6b0a2b79ad09a1d81cc1929167cbcf4d5e36de.zip
* Corrected Extremity Fist
* Added weapon skills rely on attack speed as cast delays * Fixed mob_ghostring_fix not working git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@583 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 740caf777..2cba675c2 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1,4 +1,4 @@
-// $Id: skill.c,v 1.8 2004/12/15 8:56:46 PM Celestia $
+// $Id: skill.c,v 1.8 2004/12/16 6:46:08 PM Celestia $
/* ƒXƒLƒ‹?ŒW */
#include <stdio.h>
@@ -7259,6 +7259,9 @@ int skill_check_condition(struct map_session_data *sd,int type)
}
break;
case ST_EXPLOSIONSPIRITS:
+ if (skill == MO_EXTREMITYFIST && ((sd->sc_data[SC_COMBO].timer != -1 && (sd->sc_data[SC_COMBO].val1 == MO_COMBOFINISH || sd->sc_data[SC_COMBO].val1 == CH_CHAINCRUSH)) || sd->sc_data[SC_BLADESTOP].timer!=-1)) {
+ break;
+ }
if(sd->sc_data[SC_EXPLOSIONSPIRITS].timer == -1) {
clif_skill_fail(sd,skill,0,0);
return 0;
@@ -7730,6 +7733,11 @@ int skill_use_id( struct map_session_data *sd, int target_id,
skill_status_change_end(&sd->bl, SC_MEMORIZE, -1);
}
+ // instant cast attack skills depend on aspd as delay [celest]
+ if (casttime == 0 && delay == 0 && skill_db[skill_num].skill_type == BF_WEAPON) {
+ delay = battle_get_adelay (&sd->bl) * battle_config.delay_rate / 100;
+ }
+
if(battle_config.pc_skill_log)
printf("PC %d skill use target_id=%d skill=%d lv=%d cast=%d\n",sd->bl.id,target_id,skill_num,skill_lv,casttime);