Jump to content
  • Error in source code ap_bonus/ap_dot_bonus


    Arkadus
    • Status: Completed
      Main Category: Core / Mangos Daemon
      Sub-Category: Combat
      Version: 0.20(currentmasterbranch) Milestone: 20 Priority: Urgent
      Implemented Version: 0.20

    Error in source code ap_bonus/ap_dot_bonus

    In Void SpellMgr::LoadSpellBonuses()

    SpellBonusEntry sbe;

    sbe.direct_damage = fields[1].GetFloat();
    sbe.one_hand_direct_damage = fields[2].GetFloat();
    sbe.two_hand_direct_damage = fields[3].GetFloat();
    sbe.direct_damage_done = fields[4].GetFloat();
    sbe.one_hand_direct_damage_done = fields[5].GetFloat();
    sbe.two_hand_direct_damage_done = fields[6].GetFloat();
    sbe.direct_damage_taken = fields[7].GetFloat();
    -sbe.one_hand_direct_damage_taken = fields[7].GetFloat();
    -sbe.two_hand_direct_damage_taken = fields[8].GetFloat();
    -sbe.dot_damage = fields[9].GetFloat();
    -sbe.ap_bonus = fields[10].GetFloat();
    -sbe.ap_dot_bonus = fields[11].GetFloat();


    Should actually be:

    SpellBonusEntry sbe;

    sbe.direct_damage = fields[1].GetFloat();
    sbe.one_hand_direct_damage = fields[2].GetFloat();
    sbe.two_hand_direct_damage = fields[3].GetFloat();
    sbe.direct_damage_done = fields[4].GetFloat();
    sbe.one_hand_direct_damage_done = fields[5].GetFloat();
    sbe.two_hand_direct_damage_done = fields[6].GetFloat();
    sbe.direct_damage_taken = fields[7].GetFloat();
    +sbe.one_hand_direct_damage_taken = fields[8].GetFloat();
    +sbe.two_hand_direct_damage_taken = fields[9].GetFloat();
    +sbe.dot_damage = fields[10].GetFloat();
    +sbe.ap_bonus = fields[11].GetFloat();
    +sbe.ap_dot_bonus = fields[12].GetFloat();


    User Feedback

    Recommended Comments



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use