Commit 5f4e8054 authored by REIKAI's avatar REIKAI 💬

update lua

parent 6aa17a19
Pipeline #18817 passed with stage
in 24 minutes
......@@ -2646,7 +2646,7 @@ function Scl.CreateFieldTriggerContinousEffect_PhaseOpearte(reg_obj, op_obj, tim
tc:RegisterFlagEffect(FLAG_PHASE_OPERATE_SCL, RESETS_SCL, EFFECT_FLAG_CLIENT_HINT, 0, fid, desc)
end
sg:KeepAlive()
local e1 = Scl.CreateFieldTriggerContinousEffect(reg_obj, EVENT_PHASE + phase, DESC_PHASE_OPERATION_SCL, 1, "IgnoreImmune", nil, s.phase_opearte_con(phase, atct, whos, fid, times, ex_con), s.phase_opearte_op(fun_obj, fid))
local e1 = Scl.CreateFieldTriggerContinousEffect(reg_obj, EVENT_PHASE + phase, DESC_PHASE_OPERATION_SCL, 1, "IgnoreUnaffected", nil, s.phase_opearte_con(phase, atct, whos, fid, times, ex_con), s.phase_opearte_op(fun_obj, fid))
Scl.Operation_Info[e1] = {sg, 0, 0}
return e1
end
......@@ -3277,7 +3277,7 @@ function scl.list_format_cost_or_target_or_operation(obj)
return function(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
Scl.Card_Target_Count_Check = 0
Scl.Player_Cost_And_Target_Value = { }
local arr = Scl.CloneArray(obj)
local arr = obj
arr = type(arr[1]) ~= "table" and { arr } or arr
local used_arr = { }
if chkc or chk == 0 then
......
......@@ -9,14 +9,14 @@ function s.initial_effect(c)
"Damage,NegateEffect", nil, "MonsterZone", nil, nil, {
{ "PlayerTarget", "Damage", 1000, 1000 },
{ "~Target", aux.NegateAnyFilter, "NegateEffect",
0, "Field", B2Sayaka.LPDifferentChk } }, s.damop)
0, "OnField", B2Sayaka.LPDifferentChk } }, s.damop)
B2Sayaka.Effect2Condition(id, e2, EVENT_SUMMON_SUCCESS, s.regop,
EVENT_FLIP_SUMMON_SUCCESS, EVENT_SPSUMMON_SUCCESS)
local e3 = Scl.CreateSingleTriggerOptionalEffect(c, EVENT_RELEASE,
"ShuffleIn2Deck", {1, id + 200},
"ShuffleIn2Deck", "Delay", B2Sayaka.ExtraLimit, nil, {
"~Target", Card.IsAbleToDeck, "ShuffleIn2Deck",
0, "Field", B2Sayaka.LPDifferent2Chk }, s.tdop)
0, "OnField", B2Sayaka.LPDifferent2Chk }, s.tdop)
end
function s.damop(e,tp)
if not B2Sayaka.Damage(tp) then return end
......@@ -30,5 +30,5 @@ function s.regop(e,tp,eg)
end
function s.tdop(e,tp)
local ct = B2Sayaka.LPDifferent2()
Scl.SelectAndOperateCards("ShuffleIn2Deck", tp, Card.IsAbleToDeck, tp, 0, "Field", 1, ct, nil)()
Scl.SelectAndOperateCards("ShuffleIn2Deck", tp, Card.IsAbleToDeck, tp, 0, "OnField", 1, ct, nil)()
end
\ No newline at end of file
......@@ -9,7 +9,7 @@ function s.initial_effect(c)
"GainLP,Send2GY", nil, "MonsterZone", nil, nil, {
{ "PlayerTarget", "GainLP", 1000 },
{ "~Target", Card.IsAbleToGrave, "Send2GY",
0, "Field", B2Sayaka.LPDifferentAdd1000Chk} }, s.damop)
0, "OnField", B2Sayaka.LPDifferentAdd1000Chk} }, s.damop)
B2Sayaka.Effect2Condition(id, e2, EVENT_DAMAGE, s.regop)
local e3 = Scl.CreateSingleTriggerOptionalEffect(c, EVENT_RELEASE,
"ShuffleIn2Deck", {1, id + 200},
......@@ -20,11 +20,11 @@ end
function s.damop(e,tp)
if Duel.Recover(tp, 1000, REASON_EFFECT) <= 0 then return end
local ct = B2Sayaka.LPDifferent()
Scl.SelectAndOperateCards("Send2GY",tp,Card.IsAbleToGrave,tp,0,"Field",1,ct,nil)()
Scl.SelectAndOperateCards("Send2GY",tp,Card.IsAbleToGrave,tp,0,"OnField",1,ct,nil)()
end
function s.regop(e,tp,eg,ep)
Duel.RegisterFlagEffect(ep, id, RESET_EP_SCL, 0 , 1)
end
function s.drop(e,tp)
Scl.SelectAndOperateCards("ShuffleIn2Deck&Draw",tp,Card.IsAbleToDeck,tp,"Banish,GY",0,1,3,nil)(nil, 2, tp, 1)
Scl.SelectAndOperateCards("ShuffleIn2Deck&Draw",tp,Card.IsAbleToDeck,tp,"Banished,GY",0,1,3,nil)(nil, 2, tp, 1)
end
\ No newline at end of file
......@@ -6,7 +6,7 @@ function s.initial_effect(c)
e1:SetCondition(B2Sayaka.ExtraLimit)
local e2 = Scl.CreateFieldBuffEffect(c, "!BeEffectTarget", 1, s.tg,
{"MonsterZone", 0}, "FieldZone")
local e3 = Scl.CreateFieldBuffEffect(c, "!BeDestroyedByEffect", 1, s.tg,
local e3 = Scl.CreateFieldBuffEffect(c, "!BeDestroyedByEffects", 1, s.tg,
{"MonsterZone", 0}, "FieldZone")
local e4 = Scl.CreateIgnitionEffect(c, "ChangeLevel", 1, "ChangeLevel", nil,
"FieldZone", nil, nil, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment