Skip to content

Commit

Permalink
Lua: Aw'Zdei: Floor ID after division
Browse files Browse the repository at this point in the history
  • Loading branch information
zach2good committed Jan 4, 2025
1 parent 8247258 commit 6f97412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/zones/The_Garden_of_RuHmet/mobs/Qnzdei.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ local changeState = function(mob, idle)
mob:setLocalVar('idle', idle)

-- Calculate door id based off of mob id and door offset
local doorID = ID.npc.QNZDEI_DOOR_OFFSET + (mob:getID() - ID.mob.QNZDEI_OFFSET) / 4
local door = GetNPCByID(doorID)
local doorID = math.floor(ID.npc.QNZDEI_DOOR_OFFSET + (mob:getID() - ID.mob.QNZDEI_OFFSET) / 4)
local door = GetNPCByID(doorID)

if door then
local doorIdle = door:getLocalVar('idle')
Expand Down

0 comments on commit 6f97412

Please sign in to comment.