diff options
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index c6ac1f2be58..d3db16934f7 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -6998,16 +6998,12 @@ void Player::_ApplyItemBonuses(ItemPrototype const *proto, uint8 slot, bool appl SetBaseWeaponDamage(attType, MAXDAMAGE, damage); } - if (proto->Class == ITEM_CLASS_WEAPON && proto->Delay) + // Druids get feral AP bonus from weapon dps + if(getClass() == CLASS_DRUID) { - // Druids get feral AP bonus from weapon dps - if(getClass() == CLASS_DRUID && (slot==EQUIPMENT_SLOT_MAINHAND || slot==EQUIPMENT_SLOT_OFFHAND)) - { - float dps = (proto->Damage[0].DamageMin + proto->Damage[0].DamageMax)/(2*proto->Delay/1000.0f); - int32 feral_bonus = int32(dps*14.0f) - 767; - if (feral_bonus > 0) - ApplyFeralAPBonus(feral_bonus, apply); - } + int32 feral_bonus = proto->getFeralBonus(); + if (feral_bonus > 0) + ApplyFeralAPBonus(feral_bonus, apply); } if(!IsUseEquipedWeapon(slot==EQUIPMENT_SLOT_MAINHAND)) |
