Skip to content

Commit

Permalink
Fix quest drop MobId type to number
Browse files Browse the repository at this point in the history
  • Loading branch information
Neogeekmo committed May 20, 2024
1 parent 5c57915 commit 48d4bf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ function AprRC.event.functions.loot(event, message, ...)
end
if hasQuestItem then
local step = {}
step.DroppableQuest = { Text = targetName, MobId = targetID }
step.DroppableQuest = { Text = targetName, MobId = tonumber(targetID) }
AprRC:SetStepCoord(step)
AprRC:NewStep(step, 5)
end
Expand All @@ -524,7 +524,7 @@ end
function AprRC.event.functions.target(event, ...)
local targetGUID = UnitGUID("target")
if not targetGUID then return end
targetName = UnitName("target")
targetName = UnitNameUnmodified("target")
targetID = select(6, strsplit("-", targetGUID))
end

Expand Down

0 comments on commit 48d4bf8

Please sign in to comment.