Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -1,29 +1,29 @@ ---~ local str = {} - ---~ local cache_1 ---~ local cache_2 - ---~ _G["通关邀请"] = function() ---~ local effect_1 ---~ effect_1 = Effect.GlobalEffect() ---~ effect_1:SetType(EFFECT_TYPE_FIELD ---~ + EFFECT_TYPE_CONTINUOUS) ---~ effect_1:SetCode(EVENT_DAMAGE) ---~ function cache_1() ---~ cache_1 = Duel.GetLP(1) ---~ if cache_1 <= 0 then ---~ cache_1 = true ---~ else ---~ cache_1 = false ---~ end ---~ return cache_1 ---~ end ---~ effect_1:SetCondition(cache_1) ---~ function cache_1() ---~ Debug.ShowHint("残局群181175613") ---~ return ---~ end ---~ effect_1:SetOperation(cache_1) ---~ Duel.RegisterEffect(effect_1 ---~ , 0) ---~ end +local str = {} + +local cache_1 +local cache_2 + +_G["通关邀请"] = function() + local effect_1 + effect_1 = Effect.GlobalEffect() + effect_1:SetType(EFFECT_TYPE_FIELD + + EFFECT_TYPE_CONTINUOUS) + effect_1:SetCode(EVENT_DAMAGE) + function cache_1() + cache_1 = Duel.GetLP(1) + if cache_1 <= 0 then + cache_1 = true + else + cache_1 = false + end + return cache_1 + end + effect_1:SetCondition(cache_1) + function cache_1() + Debug.ShowHint("残局群181175613") + return + end + effect_1:SetOperation(cache_1) + Duel.RegisterEffect(effect_1 + , 0) + end Index: single/07.Constellar vs Evilswarm.lua ================================================================== --- single/07.Constellar vs Evilswarm.lua +++ single/07.Constellar vs Evilswarm.lua @@ -21,11 +21,10 @@ Debug.AddCard(77542832,1,1,LOCATION_MZONE,1,POS_FACEUP) Debug.AddCard(91279700,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK,true) Debug.AddCard(77542832,1,1,LOCATION_MZONE,2,POS_FACEUP) Debug.AddCard(37926346,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK,true) Debug.AddCard(77542832,1,1,LOCATION_MZONE,3,POS_FACEUP) -Debug.AddCard(2563463,0,0,LOCATION_HAND,0,POS_FACEDOWN) --~ 加载残局函数库 Debug.AddCard(0,0,0,LOCATION_MZONE,0,POS_FACEUP) Debug.ReloadFieldEnd() aux.BeginPuzzle()