Skip to content

Commit

Permalink
Properly set limits on Essence
Browse files Browse the repository at this point in the history
Fixes client crashes caused by creating 50000 blocks
  • Loading branch information
Nevcairiel committed May 13, 2023
1 parent ef52a81 commit 370f456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/movers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ local function createConfigEnv()
end,
UnitHealthMax = function(unit) return 50000 end,
UnitPower = function(unit, powerType)
if( powerType == Enum.PowerType.HolyPower or powerType == Enum.PowerType.SoulShards ) then
if( powerType == Enum.PowerType.HolyPower or powerType == Enum.PowerType.SoulShards or powerType == Enum.PowerType.Essence ) then
return 3
elseif( powerType == Enum.PowerType.Chi) then
return 4
Expand All @@ -67,7 +67,7 @@ local function createConfigEnv()
elseif( powerType == Enum.PowerType.Focus ) then
return 120
elseif( powerType == Enum.PowerType.ComboPoints or powerType == Enum.PowerType.SoulShards or powerType == Enum.PowerType.HolyPower
or powerType == Enum.PowerType.Chi ) then
or powerType == Enum.PowerType.Chi or powerType == Enum.PowerType.Essence ) then
return 5
elseif( powerType == Enum.PowerType.Runes ) then
return 6
Expand Down

0 comments on commit 370f456

Please sign in to comment.