Skip to content

Commit

Permalink
Check if CR_HASTE_SPELL is available before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Jun 19, 2024
1 parent e2ecf69 commit dd35f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/EnemyCasts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function Enemy:CLEUHandler()
casts[sGUID].spellName = spellName
casts[sGUID].spellId = spellId
casts[sGUID].texture = texture
casts[sGUID].duration = castTime / 1000 * (1 + (GetCombatRatingBonus(CR_HASTE_SPELL) / 100))
casts[sGUID].duration = castTime / 1000 * (1 + (CR_HASTE_SPELL and (GetCombatRatingBonus(CR_HASTE_SPELL) / 100) or 0))
casts[sGUID].startTime = GetTime()
casts[sGUID].endTime = casts[sGUID].startTime + casts[sGUID].duration

Expand Down

0 comments on commit dd35f6d

Please sign in to comment.