Skip to content

Commit

Permalink
Creature: Fix CLASS_ROGUE AP formula
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Apr 21, 2024
1 parent 13aa87c commit a3a647a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/game/Entities/StatSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a3a647a

Please sign in to comment.