Skip to content

Commit

Permalink
Fixed null player check
Browse files Browse the repository at this point in the history
  • Loading branch information
Flibe-XI committed Dec 5, 2023
1 parent c2f0514 commit f4d8d0d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/missions/amk/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ end
-- a local var that is set once by the first player is called by onMobDeath
-- The rest of the players in alliance get the same outcome as the first
xi.amk.helpers.cardianOrbDrop = function(mob, player, orb)
if
player:getCurrentMission(xi.mission.log_id.AMK) < xi.mission.id.amk.AN_ERRAND_THE_PROFESSORS_PRICE or
player == nil or
orb == nil
then
if player == nil or player:getCurrentMission(xi.mission.log_id.AMK) < xi.mission.id.amk.AN_ERRAND_THE_PROFESSORS_PRICE then
return
end

Expand Down

0 comments on commit f4d8d0d

Please sign in to comment.