whoops I forgot to do that
This commit is contained in:
parent
1e114b6da3
commit
c7dd172785
|
@ -782,9 +782,16 @@ local function processPets(cell)
|
||||||
if isNPCPet(creature) then
|
if isNPCPet(creature) then
|
||||||
if checkTime() then
|
if checkTime() then
|
||||||
-- disable
|
-- disable
|
||||||
|
if not creature.disabled then
|
||||||
log(common.logLevels.medium, "Disabling NPC Pet %s!", creature.object.id)
|
log(common.logLevels.medium, "Disabling NPC Pet %s!", creature.object.id)
|
||||||
|
mwscript.disable({reference = creature })
|
||||||
|
end
|
||||||
else
|
else
|
||||||
-- enable
|
-- enable
|
||||||
|
if creature.disabled then
|
||||||
|
log(common.logLevels.medium, "Enabling NPC Pet %s!", creature.object.id)
|
||||||
|
mwscript.enable({reference = creature })
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue