Skip to content

Commit

Permalink
Fixed an exception that occured during cutscenes due to in combat checks
Browse files Browse the repository at this point in the history
  • Loading branch information
onimitch committed Feb 29, 2024
1 parent 754eef0 commit 6f76eb5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Balloon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,11 @@ balloon.process_balloon = function(message, mode)
if not balloon.settings.in_combat then
local entity = AshitaCore:GetMemoryManager():GetEntity()
local party = AshitaCore:GetMemoryManager():GetParty()
local player_index = party:GetMemberTargetIndex(0)
if entity:GetStatus(player_index) == 1 then
return
if entity ~= nil and party ~= nil then
local player_index = party:GetMemberTargetIndex(0)
if entity:GetStatus(player_index) == 1 then
return
end
end
end

Expand Down

0 comments on commit 6f76eb5

Please sign in to comment.