diff options
author | Haru <haru@dotalux.com> | 2013-12-03 16:19:16 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-12-03 16:25:27 +0100 |
commit | 470ab15023f09dc823e8ce8ac818e0bbe8a95aef (patch) | |
tree | ea223185005470780d915b2de77eafd3902e84bd /src/map/skill.c | |
parent | ff5779033a7d45bbd306b2bf62759152a72cbe79 (diff) | |
download | hercules-470ab15023f09dc823e8ce8ac818e0bbe8a95aef.tar.gz hercules-470ab15023f09dc823e8ce8ac818e0bbe8a95aef.tar.bz2 hercules-470ab15023f09dc823e8ce8ac818e0bbe8a95aef.tar.xz hercules-470ab15023f09dc823e8ce8ac818e0bbe8a95aef.zip |
Corrected Steal Coin formulas and battle log message
- Updated to use official formulas from Aegis (for both success chance
and stolen zeny amount.)
- It now shows the correct stolen zeny amount in the battle log, rather
than showing the skill level.
- Made possible thanks to Yommy and Ind.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 45d06c97a..197d4fe2d 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6114,15 +6114,14 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin case RG_STEALCOIN: if(sd) { - if(pc->steal_coin(sd,bl)) - { + int amount = pc->steal_coin(sd, bl); + if( amount > 0 ) { dstmd->state.provoke_flag = src->id; - mob->target(dstmd, src, skill->get_range2(src,skill_id,skill_lv)); - clif->skill_nodamage(src,bl,skill_id,skill_lv,1); + mob->target(dstmd, src, skill->get_range2(src, skill_id, skill_lv)); + clif->skill_nodamage(src, bl, skill_id, amount, 1); - } - else - clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); + } else + clif->skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0); } break; |