Advertisement
Guest User

Untitled

a guest
May 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.48 KB | None | 0 0
  1. Index: arcemu-world/Player.cpp
  2. ===================================================================
  3. --- arcemu-world/Player.cpp (revision 3369)
  4. +++ arcemu-world/Player.cpp (working copy)
  5. @@ -9577,7 +9577,35 @@
  6.     float r;
  7.     int ss = GetShapeShift();
  8.  /////////////////MAIN HAND
  9. -       float ap_bonus = GetAP()/14000.0f;
  10. +   float ap_bonus;
  11. +   /*
  12. +   Source: WoWWiki
  13. +   All weapons with more than 54.8 DPS grant druids feral attack power.
  14. +   No weapon has a specific bonus to feral attack power. Feral attack power
  15. +   can be increased further with the Predatory Strikes talent.
  16. +
  17. +   Forumula: F = [(d - 54.8) * 14] where F is Feral Attack Power and d is DPS of weapon.
  18. +   */
  19. +   if(IsInFeralForm())
  20. +   {
  21. +       float FeralAP = 0.0f; // All druids gain
  22. +       Item *it = GetItemInterface()->GetInventoryItem(EQUIPMENT_SLOT_MAINHAND);
  23. +       if(it != NULL)
  24. +       {
  25. +           float dps = ((it->GetProto()->Damage[0].Min + it->GetProto()->Damage[0].Max) / 2) / it->GetProto()->Delay;
  26. +           FeralAP += ((dps - 54.8f) * 14);
  27. +       }
  28. +       it = GetItemInterface()->GetInventoryItem(EQUIPMENT_SLOT_OFFHAND);
  29. +       if(it != NULL)
  30. +       {
  31. +           float dps = ((it->GetProto()->Damage[0].Min + it->GetProto()->Damage[0].Max) / 2) / it->GetProto()->Delay;
  32. +           FeralAP += ((dps - 54.8f) * 14);
  33. +       }
  34. +       FeralAP = max(0.0f, FeralAP);
  35. +       ap_bonus = (GetAP() + FeralAP)/14000.0f;
  36. +   }
  37. +   else
  38. +       ap_bonus = GetAP()/14000.0f;
  39.         delta = (float)GetPosDamageDoneMod(SCHOOL_NORMAL) - (float)GetNegDamageDoneMod(SCHOOL_NORMAL);
  40.  
  41.         if(IsInFeralForm())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement