From acf4079c828a56c5ba761698b425168110d3722f Mon Sep 17 00:00:00 2001 From: Michieru Date: Wed, 7 May 2014 21:33:24 +0200 Subject: 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 --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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))); -- cgit v1.2.3-60-g2f50