Skip to content

Commit

Permalink
Fixed spell scaling for missing config key/value.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnchyDev committed Mar 8, 2024
1 parent 6d431a7 commit 51c53b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/ToSUnitScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void ToSUnitScript::ModifySpellDamageTaken(Unit* /*target*/, Unit* attacker, int

uint32 currentWave = iScript->GetData(TOS_DATA_ENCOUNTER_CURRENT_WAVE);

uint32 baseDamage = sConfigMgr->GetOption<uint32>("TrialOfStrength.Scaling.BaseDamage.Spell", 500);
uint32 baseDamage = sConfigMgr->GetOption<uint32>("TrialOfStrength.Scaling.BaseDamage.Spell", 1000);
uint32 damageDivider = sConfigMgr->GetOption<uint32>("TrialOfStrength.Scaling.BaseDamage.SpellDivider", 15);;

uint32 newDamage = baseDamage * (1.0f + (float(currentWave) / float(damageDivider)));
Expand Down

0 comments on commit 51c53b6

Please sign in to comment.