Commit 93839bed authored by REIKAI's avatar REIKAI 💬

update lua

parent a436c8ee
Pipeline #17350 passed with stages
in 23 minutes and 18 seconds
...@@ -23,7 +23,7 @@ function cm.disfilter(c,e) ...@@ -23,7 +23,7 @@ function cm.disfilter(c,e)
if e:GetLabel()==1 then if e:GetLabel()==1 then
return c:IsOnField() and c:IsAbleToDeck() and c:IsSetCard(0xb81) return c:IsOnField() and c:IsAbleToDeck() and c:IsSetCard(0xb81)
else else
return c:IsOnField() and c:IsAbleToDeck() and c:IsSetCard(0x3a04) return c:IsOnField() and c:IsAbleToDeck() and c:IsSetCard(0x3421)
end end
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -38,7 +38,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
g:ForEach(Card.ResetEffect,EFFECT_PUBLIC,RESET_CODE) g:ForEach(Card.ResetEffect,EFFECT_PUBLIC,RESET_CODE)
local ct=g:FilterCount(cm.filter,nil) local ct=g:FilterCount(cm.filter,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local sg=Duel.SelectMatchingCard(tp,cm.disfilter,tp,0,LOCATION_ONFIELD,1,1,nil) local sg=Duel.SelectMatchingCard(tp,cm.disfilter,tp,0,LOCATION_ONFIELD,1,ct,nil)
if #sg==0 then return end if #sg==0 then return end
Duel.HintSelection(sg) Duel.HintSelection(sg)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -61,6 +61,7 @@ function c67200353.cfilter(c,sp) ...@@ -61,6 +61,7 @@ function c67200353.cfilter(c,sp)
return c:IsSummonPlayer(sp) return c:IsSummonPlayer(sp)
end end
function c67200353.exctcon(e,tp,eg,ep,ev,re,r,rp) function c67200353.exctcon(e,tp,eg,ep,ev,re,r,rp)
if #eg~=1 then return false end
return eg:IsExists(c67200353.cfilter,1,nil,1-tp) return eg:IsExists(c67200353.cfilter,1,nil,1-tp)
end end
function c67200353.ctfilter(c,tp) function c67200353.ctfilter(c,tp)
......
...@@ -26,7 +26,7 @@ function c71400001.tg1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,7 +26,7 @@ function c71400001.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
local op=0 local op=0
if b1 and b2 then if b1 and b2 then
op=Duel.SelectOption(tp,aaux.Stringid(71400001,2),aux.Stringid(71400001,0)) op=Duel.SelectOption(tp,aux.Stringid(71400001,2),aux.Stringid(71400001,0))
elseif b1 then elseif b1 then
op=Duel.SelectOption(tp,aux.Stringid(71400001,2)) op=Duel.SelectOption(tp,aux.Stringid(71400001,2))
else else
......
...@@ -7,7 +7,7 @@ function c71400062.initial_effect(c) ...@@ -7,7 +7,7 @@ function c71400062.initial_effect(c)
e0:SetCode(EVENT_FREE_CHAIN) e0:SetCode(EVENT_FREE_CHAIN)
e0:SetCondition(yume.YumeCon) e0:SetCondition(yume.YumeCon)
c:RegisterEffect(e0) c:RegisterEffect(e0)
--direct attack --extra attack
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_EXTRA_ATTACK) e1:SetCode(EFFECT_EXTRA_ATTACK)
...@@ -18,7 +18,7 @@ function c71400062.initial_effect(c) ...@@ -18,7 +18,7 @@ function c71400062.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--sp summon --sp summon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(71400062,1)) e2:SetDescription(aux.Stringid(71400062,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
...@@ -33,7 +33,7 @@ function c71400062.tg1(e,c) ...@@ -33,7 +33,7 @@ function c71400062.tg1(e,c)
return c:IsSetCard(0x714) and cg:IsContains(c) return c:IsSetCard(0x714) and cg:IsContains(c)
end end
function c71400062.filter2(c,e,tp,zone) function c71400062.filter2(c,e,tp,zone)
return c:IsSetCard(0x714) and c:IsType(TYPE_LINK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,zone) return c:IsSetCard(0x714) and c:IsType(TYPE_LINK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone)
end end
function c71400062.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c71400062.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local zone=Duel.GetLinkedZone(tp) local zone=Duel.GetLinkedZone(tp)
......
...@@ -13,6 +13,7 @@ function c71400069.initial_effect(c) ...@@ -13,6 +13,7 @@ function c71400069.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--to grave --to grave
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(71400069,1))
e2:SetCategory(CATEGORY_TOGRAVE) e2:SetCategory(CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
...@@ -32,13 +33,6 @@ function c71400069.initial_effect(c) ...@@ -32,13 +33,6 @@ function c71400069.initial_effect(c)
Duel.RegisterEffect(ge1,0) Duel.RegisterEffect(ge1,0)
end end
end end
function c71400069.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
while tc do
Duel.RegisterFlagEffect(tc:GetSummonPlayer(),71400069,RESET_PHASE+PHASE_END,0,1)
tc=eg:GetNext()
end
end
function c71400069.filtercon1(c) function c71400069.filtercon1(c)
return c:IsSetCard(0x714) and c:IsType(TYPE_LINK) return c:IsSetCard(0x714) and c:IsType(TYPE_LINK)
end end
......
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