Index: 19.Let's GaGaGa.lua ================================================================== --- 19.Let's GaGaGa.lua +++ 19.Let's GaGaGa.lua @@ -46,15 +46,15 @@ local cache_1 local cache_2 fun["通关邀请"] = function() - local effect_100 - effect_100 = Effect.GlobalEffect() - effect_100:SetType(EFFECT_TYPE_FIELD + local effect_1 + effect_1 = Effect.GlobalEffect() + effect_1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) - effect_100:SetCode(EVENT_DAMAGE) + effect_1:SetCode(EVENT_DAMAGE) function cache_1() cache_1 = Duel.GetLP(1) if cache_1 <= 0 then @@ -63,37 +63,37 @@ cache_1 = false end return cache_1 end - effect_100:SetCondition(cache_1) + effect_1:SetCondition(cache_1) function cache_1() Debug.ShowHint("残局群181175613") return end - effect_100:SetOperation(cache_1) - Duel.RegisterEffect(effect_100 + effect_1:SetOperation(cache_1) + Duel.RegisterEffect(effect_1 , 0) end fun["开局添加手卡"] = function(str_1) - local effect_101 - effect_101 = Effect.GlobalEffect() - effect_101:SetType(EFFECT_TYPE_FIELD + local effect_1 + effect_1 = Effect.GlobalEffect() + effect_1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) - effect_101:SetCode(EVENT_ADJUST) - effect_101:SetCountLimit(1) + effect_1:SetCode(EVENT_ADJUST) + effect_1:SetCountLimit(1) function cache_1() cache_1 = Duel.GetLP(0) if cache_1 > 0 then cache_1 = true else cache_1 = false end return cache_1 end - effect_101:SetCondition(cache_1) + effect_1:SetCondition(cache_1) function cache_1(effect_event , player_who_activate_the_effect) cache_1 = Duel.SelectMatchingCard(player_who_activate_the_effect , Card.IsAbleToHand , player_who_activate_the_effect @@ -107,12 +107,12 @@ Duel.SendtoHand(cache_1 , nil , REASON_RULE) end end - effect_101:SetOperation(cache_1) - Duel.RegisterEffect(effect_101 + effect_1:SetOperation(cache_1) + Duel.RegisterEffect(effect_1 , 0) end fun["通关邀请"]() fun["开局添加手卡"](6) Index: 残局函数库/残局函数库.lua ================================================================== --- 残局函数库/残局函数库.lua +++ 残局函数库/残局函数库.lua @@ -4,15 +4,15 @@ local cache_1 local cache_2 fun["通关邀请"] = function() - local effect_100 - effect_100 = Effect.GlobalEffect() - effect_100:SetType(EFFECT_TYPE_FIELD + local effect_1 + effect_1 = Effect.GlobalEffect() + effect_1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) - effect_100:SetCode(EVENT_DAMAGE) + effect_1:SetCode(EVENT_DAMAGE) function cache_1() cache_1 = Duel.GetLP(1) if cache_1 <= 0 then @@ -21,37 +21,37 @@ cache_1 = false end return cache_1 end - effect_100:SetCondition(cache_1) + effect_1:SetCondition(cache_1) function cache_1() Debug.ShowHint("残局群181175613") return end - effect_100:SetOperation(cache_1) - Duel.RegisterEffect(effect_100 + effect_1:SetOperation(cache_1) + Duel.RegisterEffect(effect_1 , 0) end fun["开局添加手卡"] = function(str_1) - local effect_101 - effect_101 = Effect.GlobalEffect() - effect_101:SetType(EFFECT_TYPE_FIELD + local effect_1 + effect_1 = Effect.GlobalEffect() + effect_1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) - effect_101:SetCode(EVENT_ADJUST) - effect_101:SetCountLimit(1) + effect_1:SetCode(EVENT_ADJUST) + effect_1:SetCountLimit(1) function cache_1() cache_1 = Duel.GetLP(0) if cache_1 > 0 then cache_1 = true else cache_1 = false end return cache_1 end - effect_101:SetCondition(cache_1) + effect_1:SetCondition(cache_1) function cache_1(effect_event , player_who_activate_the_effect) cache_1 = Duel.SelectMatchingCard(player_who_activate_the_effect , Card.IsAbleToHand , player_who_activate_the_effect @@ -65,13 +65,13 @@ Duel.SendtoHand(cache_1 , nil , REASON_RULE) end end - effect_101:SetOperation(cache_1) - Duel.RegisterEffect(effect_101 + effect_1:SetOperation(cache_1) + Duel.RegisterEffect(effect_1 , 0) end fun["通关邀请"]() fun["开局添加手卡"](1)