diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-31 15:34:54 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-31 15:34:54 +0000 |
commit | 2728f0a06a9aa3cf1530ac2756bde985221541ed (patch) | |
tree | 54f6d33ef8522f89c6e8a5caef0cd19772493247 /src | |
parent | 0a49ef38e015de362634036dccb8914ab1754628 (diff) | |
download | hercules-2728f0a06a9aa3cf1530ac2756bde985221541ed.tar.gz hercules-2728f0a06a9aa3cf1530ac2756bde985221541ed.tar.bz2 hercules-2728f0a06a9aa3cf1530ac2756bde985221541ed.tar.xz hercules-2728f0a06a9aa3cf1530ac2756bde985221541ed.zip |
* Set 'undead_detect_type' to 0 by default
* Fixed Enchant Poison / Deadly Poison having too high poisoning chance
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1355 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 0ea0c81fa..d84a18d7a 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -772,13 +772,13 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int } // enchant poison has a chance of poisoning enemy if (sd->sc_data[SC_ENCPOISON].timer != -1 && sc_data && sc_data[SC_POISON].timer == -1 && - rand() % 100 < sd->sc_data[SC_ENCPOISON].val1 * sc_def_vit) { + rand() % 100 < sd->sc_data[SC_ENCPOISON].val1 * sc_def_vit / 100) { status_change_start(bl,SC_POISON,sd->sc_data[SC_ENCPOISON].val1, 0,0,0,skill_get_time2(AS_ENCHANTPOISON,sd->sc_data[SC_ENCPOISON].val1),0); } // エンチャントデットリ?ポイズン(猛毒?果) if (sd->sc_data[SC_EDP].timer != -1 && sc_data && sc_data[SC_DPOISON].timer == -1 && - rand() % 100 < sd->sc_data[SC_EDP].val2 * sc_def_vit) + rand() % 100 < sd->sc_data[SC_EDP].val2 * sc_def_vit / 100) status_change_start(bl,SC_DPOISON,sd->sc_data[SC_EDP].val1, 0,0,0,skill_get_time2(ASC_EDP,sd->sc_data[SC_EDP].val1),0); } @@ -6791,7 +6791,7 @@ int skill_delayfix( struct block_list *bl, int time ) sc_data = status_get_sc_data(bl); if(sd) { - delayrate=((struct map_session_data *)bl)->delayrate; + delayrate = sd->delayrate; // instant cast attack skills depend on aspd as delay [celest] if (time == 0) { |