FunctionRepairSeal = class("FunctionRepairSeal") function FunctionRepairSeal.Me() if nil == FunctionRepairSeal.me then FunctionRepairSeal.me = FunctionRepairSeal.new() end return FunctionRepairSeal.me end function FunctionRepairSeal:ctor() end function FunctionRepairSeal:AccessTarget(target) if(target and target:GetCreatureType() == Creature_Type.Npc)then if(target.data.staticData.Type == "SealNPC")then self:ActiveSeal(target.data.id); end end end function FunctionRepairSeal:ActiveSeal(targetId) local nowMapId = Game.MapManager:GetMapID(); local nowSealItem = SealProxy.Instance:GetSealItem(nowMapId, targetId) if(not nowSealItem)then printRed(string.format("cannot find map:%s target:%s", tostring(nowMapId), tostring(targetId))); return; end if(nowSealItem.etype == SceneSeal_pb.ESEALTYPE_NORMAL)then -- 只有沒有開啟的封印 修復才需要彈出2次確認視窗,正在修復的不需要彈出 local sealingItem = SealProxy.Instance:GetSealingItem(); if(sealingItem)then if(nowSealItem.issealing)then if(SealProxy.Instance.curvalue