Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: arcemu-world/Player.cpp
- ===================================================================
- --- arcemu-world/Player.cpp (revision 3369)
- +++ arcemu-world/Player.cpp (working copy)
- @@ -9577,7 +9577,35 @@
- float r;
- int ss = GetShapeShift();
- /////////////////MAIN HAND
- - float ap_bonus = GetAP()/14000.0f;
- + float ap_bonus;
- + /*
- + Source: WoWWiki
- + All weapons with more than 54.8 DPS grant druids feral attack power.
- + No weapon has a specific bonus to feral attack power. Feral attack power
- + can be increased further with the Predatory Strikes talent.
- +
- + Forumula: F = [(d - 54.8) * 14] where F is Feral Attack Power and d is DPS of weapon.
- + */
- + if(IsInFeralForm())
- + {
- + float FeralAP = 0.0f; // All druids gain
- + Item *it = GetItemInterface()->GetInventoryItem(EQUIPMENT_SLOT_MAINHAND);
- + if(it != NULL)
- + {
- + float dps = ((it->GetProto()->Damage[0].Min + it->GetProto()->Damage[0].Max) / 2) / it->GetProto()->Delay;
- + FeralAP += ((dps - 54.8f) * 14);
- + }
- + it = GetItemInterface()->GetInventoryItem(EQUIPMENT_SLOT_OFFHAND);
- + if(it != NULL)
- + {
- + float dps = ((it->GetProto()->Damage[0].Min + it->GetProto()->Damage[0].Max) / 2) / it->GetProto()->Delay;
- + FeralAP += ((dps - 54.8f) * 14);
- + }
- + FeralAP = max(0.0f, FeralAP);
- + ap_bonus = (GetAP() + FeralAP)/14000.0f;
- + }
- + else
- + ap_bonus = GetAP()/14000.0f;
- delta = (float)GetPosDamageDoneMod(SCHOOL_NORMAL) - (float)GetNegDamageDoneMod(SCHOOL_NORMAL);
- if(IsInFeralForm())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement