diff options
author | Michieru <Michieru@users.noreply.github.com> | 2014-05-07 21:33:24 +0200 |
---|---|---|
committer | Michieru <Michieru@users.noreply.github.com> | 2014-05-07 21:33:24 +0200 |
commit | acf4079c828a56c5ba761698b425168110d3722f (patch) | |
tree | 151342ffda6839929fda1b04c915ab56104b0a7b /src/map/skill.c | |
parent | 9a425c11b61fb6f4e299013c7d8d9841129b8f45 (diff) | |
download | hercules-acf4079c828a56c5ba761698b425168110d3722f.tar.gz hercules-acf4079c828a56c5ba761698b425168110d3722f.tar.bz2 hercules-acf4079c828a56c5ba761698b425168110d3722f.tar.xz hercules-acf4079c828a56c5ba761698b425168110d3722f.zip |
Fixed Bug 8122
http://hercules.ws/board/tracker/issue-8122-sc-groomy-sc-weakness-and-sc-ignorance/
Fix success chance formula of SC_ENERVATION, SC_GROOMY, SC_IGNORANCE, SC_LAZINESS, SC_UNLUCKY and SC_WEAKNESS
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index dd2fba5c1..30de1c4cf 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -8526,7 +8526,7 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin //First we set the success chance based on the caster's build which increases the chance. rate = 10 * skill_lv + rnd_value( sstatus->dex / 12, sstatus->dex / 4 ) + joblvbonus + status->get_lv(src) / 10; // We then reduce the success chance based on the target's build. - rate -= rnd_value( tstatus->agi / 6, tstatus->agi / 3 ) - tstatus->luk / 10 - ( dstsd ? (dstsd->max_weight / 10 - dstsd->weight / 10 ) / 100 : 0 ) - status->get_lv(bl) / 10; + rate -= rnd_value( tstatus->agi / 6, tstatus->agi / 3 ) + tstatus->luk / 10 + ( dstsd ? (dstsd->max_weight / 10 - dstsd->weight / 10 ) / 100 : 0 ) + status->get_lv(bl) / 10; //Finally we set the minimum success chance cap based on the caster's skill level and DEX. rate = cap_value( rate, skill_lv + sstatus->dex / 20, 100); clif->skill_nodamage(src,bl,skill_id,0,sc_start(src,bl,type,rate,skill_lv,skill->get_time(skill_id,skill_lv))); |