Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #004070

  • 0 - None Assigned

  • Needs More Info

Issue Confirmations

  • Yes (1)No (0)
Photo

RG_BACKSTAP dmg in battle.c

Posted by Hercules Bot on 25 February 2010 - 06:20 AM

Originally posted by Inquisetor90
http://www.eathena.w...er&showbug=4070

CODE
                case RG_BACKSTAP:
                    if(sd && sd->status.weapon == W_BOW && battle_config.backstab_bow_penalty)
                        skillratio += (200+40*skill_lv)/2;
                    else
                        skillratio += 200+40*skill_lv;
                    break;

This existed in the function
static struct Damage battle_calc_weapon_attack(struct block_list *src,struct block_list *target,int skill_num,int skill_lv,int wflag)

where skillratio was defined as 100 (or 100% atk) initially.

I didn't test in-game but I used this formula to calculate what would happen:

Without a bow RG_BACKSTAP does
Level 1 - 340%
Level 2 - 380%
Level 3 - 420%
Level 4 - 460%
Level 5 - 500%
Level 6 - 540%
Level 7 - 580%
Level 8 - 620%
Level 9 - 660%
Level 10 - 700%


With a bow RG_BACKSTAP currently does
Level 1 - 270%
Level 2 - 290%
Level 3 - 310%
Level 4 - 330%
Level 5 - 350%
Level 6 - 370%
Level 7 - 390%
Level 8 - 410%
Level 9 - 430%
Level 10 - 450%



With a bow RG_BACKSTAP is meant to deal half the damage i.e.
Level 1 - 170%
Level 2 - 190%
Level 3 - 210%
Level 4 - 230%
Level 5 - 250%
Level 6 - 270%
Level 7 - 290%
Level 8 - 310%
Level 9 - 330%
Level 10 - 350%




A remodified code could be
CODE
                case RG_BACKSTAP:
                        skillratio += 200+40*skill_lv;
                    if(sd && sd->status.weapon == W_BOW && battle_config.backstab_bow_penalty)
                        skillratio = skillratio/2;
                    break;


This post has been edited by Inquisetor90: Feb 24 2010, 11:25 PM

Originally posted by Ind
need confirmation/source. thanks

moved issue from Skills