Skip to content

Commit

Permalink
Fury: Prevent an error when SPELL_CAST_SUCCESS fires for unsupported …
Browse files Browse the repository at this point in the history
…spell IDs.
  • Loading branch information
Hekili committed Apr 27, 2020
1 parent 93e4595 commit 378b537
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/WarriorFury.lua
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ if UnitClassBase( 'player' ) == 'WARRIOR' then
if sourceGUID == state.GUID and subtype == "SPELL_CAST_SUCCESS" then
local ability = class.abilities[ spellID ]

if ability and ability.key == "whirlwind" then
if not ability then return end

if ability.key == "whirlwind" then
whirlwind_gained = GetTime()
whirlwind_stacks = 2

Expand Down

0 comments on commit 378b537

Please sign in to comment.