Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Final error handling for v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluviolithic committed Dec 17, 2023
1 parent 4db6b33 commit 3d292f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/client/UI/Combat/BossUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ playerStatePromise:andThen(function()
end

local oldEnemy = selectors.getCurrentTarget(oldState, player.Name)
if not currentEnemy and CollectionService:HasTag(oldEnemy, "RotatingBoss") then
if
not currentEnemy
and CollectionService:HasTag(oldEnemy, "RotatingBoss")
and oldEnemy:FindFirstChild "Humanoid"
then
local rootPart = if oldEnemy.Humanoid.RootPart
then oldEnemy.Humanoid.RootPart
else oldEnemy:FindFirstChild "RootPart"
Expand Down
1 change: 0 additions & 1 deletion src/server/Combat/Enemies/ApplyEnemyAnimations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ return function(enemy, info, janitor)
end
end, true)
else
print "oh dear, we have a problem"
damagePlayers = false
info.DamageActive = nil
info.AnimationsActive = nil
Expand Down
2 changes: 1 addition & 1 deletion src/server/Combat/Enemies/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ local function handleEnemy(enemy)
end

debounces[player] = true
task.delay(0.5, function()
task.delay(1, function()
debounces[player] = nil
end)

Expand Down

0 comments on commit 3d292f9

Please sign in to comment.