summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-13 04:17:35 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-13 04:17:35 +0000
commitcc36297906a9cbb6a7a8c7120b1b9973090e6ba8 (patch)
tree644f4f8850dbb01092e2ce835be17f6756bc8547 /src
parentd2611758dfd1460e2b2d07e05ca5524a057953ef (diff)
downloadhercules-cc36297906a9cbb6a7a8c7120b1b9973090e6ba8.tar.gz
hercules-cc36297906a9cbb6a7a8c7120b1b9973090e6ba8.tar.bz2
hercules-cc36297906a9cbb6a7a8c7120b1b9973090e6ba8.tar.xz
hercules-cc36297906a9cbb6a7a8c7120b1b9973090e6ba8.zip
* Corrected a typo preventing Plagiarism to work
* Fixed Berzebub card and other 'reduce cast delays' equipment not working git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@966 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index ffbd1b44d..8ede774e3 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1790,11 +1790,12 @@ int skill_attack( int attack_type, struct block_list* src, struct block_list *ds
if(rand()%100 < rate)
skill_addtimerskill(src,tick + 800,bl->id,0,0,skillid,skilllv,0,flag);
}
- if(damage > 0 && dmg.flag&BF_SKILL && bl->type==BL_PC && pc_checkskill((struct map_session_data *)bl,RG_PLAGIARISM) && sc_data[SC_PRESERVE].timer != -1){
+ if(damage > 0 && dmg.flag&BF_SKILL && bl->type==BL_PC && pc_checkskill((struct map_session_data *)bl,RG_PLAGIARISM) && sc_data[SC_PRESERVE].timer == -1){
struct map_session_data *tsd = (struct map_session_data *)bl;
nullpo_retr(0, tsd);
- if(!tsd->status.skill[skillid].id && !tsd->status.skill[skillid].id
- && !(skillid > NPC_PIERCINGATT && skillid < NPC_SUMMONMONSTER) ){
+ if(!tsd->status.skill[skillid].id && !tsd->status.skill[skillid].lv
+ && !(skillid > NPC_PIERCINGATT && skillid < NPC_SUMMONMONSTER)
+ && !(skillid > NPC_SELFDESTRUCTION2 && skillid < NPC_UNDEADATTACK)){
//?に?んでいるスキルがあれば該?スキルを消す
if (tsd->cloneskill_id && tsd->cloneskill_lv && tsd->status.skill[tsd->cloneskill_id].flag==13){
tsd->status.skill[tsd->cloneskill_id].id=0;
@@ -7474,9 +7475,9 @@ int skill_delayfix( struct block_list *bl, int time )
if(battle_config.delay_dependon_dex && /* dexの影響を計算する */
!skill_get_delaynodex(skill, lv)) // if skill casttime is allowed to be reduced by dex
- time=time*delayrate*(battle_config.castrate_dex_scale - battle_get_dex(bl))/(battle_config.castrate_dex_scale * 100);
+ time=time*(battle_config.castrate_dex_scale - battle_get_dex(bl))/(battle_config.castrate_dex_scale);
- time=time*battle_config.delay_rate/100;
+ time=time*delayrate*battle_config.delay_rate/10000;
}
/* ブラギの詩 */