From 33d49d1db1b75e0e93ea29ddc9de09eff2c05a63 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Tue, 14 May 2019 07:27:58 +0200 Subject: [PATCH] Core/Stats: Druids will now gain two additional attack power per agility point while in Bear or Cat form --- src/server/game/Entities/Unit/StatSystem.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/server/game/Entities/Unit/StatSystem.cpp b/src/server/game/Entities/Unit/StatSystem.cpp index 025f2c4f13b..74333a47df7 100644 --- a/src/server/game/Entities/Unit/StatSystem.cpp +++ b/src/server/game/Entities/Unit/StatSystem.cpp @@ -342,10 +342,9 @@ void Player::UpdateAttackPowerAndDamage(bool ranged) float strengthValue = std::max((GetStat(STAT_STRENGTH) - 10.0f) * entry->APPerStrength, 0.0f); float agilityValue = std::max((GetStat(STAT_AGILITY) - 10.0f) * entry->APPerAgility, 0.0f); - SpellShapeshiftFormEntry const* form = sSpellShapeshiftFormStore.LookupEntry(GetShapeshiftForm()); - // Directly taken from client, SHAPESHIFT_FLAG_AP_FROM_STRENGTH ? - if (form && form->flags1 & 0x20) - agilityValue += std::max((GetStat(STAT_AGILITY) - 10.0f) * entry->APPerStrength, 0.0f); + // Druids in Bear and Cat form get two points attack power per agility point + if (GetShapeshiftForm() == FORM_BEAR || GetShapeshiftForm() == FORM_CAT) + agilityValue = std::max((GetStat(STAT_AGILITY) - 10.0f) * 2, 0.0f); val2 = strengthValue + agilityValue; }