From a3a647a0da14f9b6de483f99149e09b6ff6e7c8a Mon Sep 17 00:00:00 2001 From: killerwife Date: Sun, 21 Apr 2024 23:09:32 +0200 Subject: [PATCH] Creature: Fix CLASS_ROGUE AP formula --- src/game/Entities/StatSystem.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/game/Entities/StatSystem.cpp b/src/game/Entities/StatSystem.cpp index f348aae2784..0898e2e0b65 100644 --- a/src/game/Entities/StatSystem.cpp +++ b/src/game/Entities/StatSystem.cpp @@ -919,7 +919,15 @@ void Creature::UpdateAttackPowerAndDamage(bool ranged) } else { - val2 = (GetStat(STAT_STRENGTH) - 10.0f) * 2.f; + switch (getClass()) + { + case CLASS_ROGUE: + val2 = (GetStat(STAT_STRENGTH) - 10.0f) + GetStat(STAT_AGILITY); + break; + default: + val2 = (GetStat(STAT_STRENGTH) - 10.0f) * 2.f; + break; + } } SetModifierValue(unitMod, BASE_VALUE, val2);