Skip to content

Commit

Permalink
Demonology: Make imp count a bit more conservative on reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Apr 19, 2020
1 parent 4080f62 commit 83fce27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Classes/WarlockDemonology.lua
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ if UnitClassBase( 'player' ) == 'WARLOCK' then
wipe( vilefiend_v )
for n, t in ipairs( vilefiend ) do vilefiend_v[ n ] = t end


for id, imp in pairs( imps ) do
if imp.expires < now then
imps[ id ] = nil
Expand All @@ -256,7 +257,14 @@ if UnitClassBase( 'player' ) == 'WARLOCK' then
for n, t in pairs( imps ) do table.insert( wild_imps_v, t.expires ) end
table.sort( wild_imps_v )

local difference = #wild_imps_v - GetSpellCount( 196277 )

while difference > 0 do
table.remove( wild_imps_v, 1 )
difference = difference - 1
end


wipe( guldan_v )
for n, t in ipairs( guldan ) do guldan_v[ n ] = t end

Expand Down

0 comments on commit 83fce27

Please sign in to comment.