Jump to content

[FIX] Attack Power


Auntie Mangos

Recommended Posts

What bug does the patch fix? What features does the patch add?

Attack power, as of Client Switch 3.0.3 should affect both Melee & Ranged.

For which repository revision was the patch created?

[7102]--- Tested and Works on [7102.....7177......7252...7255]

Is there a thread in the bug report section or at lighthouse?

Number 1 Number 2

Who has been writing this patch?

goodbadguy

In player.cpp line 6729 - 6735

           case ITEM_MOD_ATTACK_POWER:
               HandleStatModifier(UNIT_MOD_ATTACK_POWER, TOTAL_VALUE, float(val), apply);
+              HandleStatModifier(UNIT_MOD_ATTACK_POWER_RANGED, TOTAL_VALUE, float(val), apply);
               break;
           case ITEM_MOD_RANGED_ATTACK_POWER:
               HandleStatModifier(UNIT_MOD_ATTACK_POWER_RANGED, TOTAL_VALUE, float(val), apply);
               break;

Link to comment
Share on other sites

  • 39 years later...

This should work - It's been done just like that with all the other stats (for example hit rating:)

            case ITEM_MOD_HIT_RATING:
               ApplyRatingMod(CR_HIT_MELEE, int32(val), apply);
               ApplyRatingMod(CR_HIT_RANGED, int32(val), apply);
               ApplyRatingMod(CR_HIT_SPELL, int32(val), apply);

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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