Commit 10b6a28b authored by Tachibana's avatar Tachibana

watele

parent c2506a4c
Pipeline #6724 failed with stages
in 11 minutes and 44 seconds
...@@ -40,8 +40,8 @@ function c65001018.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,8 +40,8 @@ function c65001018.op(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
if Duel.Destroy(tc,REASON_EFFECT)~=0 and e:GetHandler():IsReleasable(e) then if Duel.Destroy(tc,REASON_EFFECT)~=0 and e:GetHandler():IsRelateToEffect(e) then
if Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) and Duel.IsExistingMatchingCard(c65001018.thfil,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(65001018,0)) then if Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)~=0 and Duel.IsExistingMatchingCard(c65001018.thfil,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(65001018,0)) then
Duel.BreakEffect() Duel.BreakEffect()
local g=Duel.SelectMatchingCard(tp,c65001018.thfil,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c65001018.thfil,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
......
...@@ -39,7 +39,7 @@ function c65020011.opfil(c,tp) ...@@ -39,7 +39,7 @@ function c65020011.opfil(c,tp)
return Duel.GetLocationCountFromEx(tp,tp,c)>0 and not c:IsType(TYPE_TUNER) return Duel.GetLocationCountFromEx(tp,tp,c)>0 and not c:IsType(TYPE_TUNER)
end end
function c65020011.synfil(c,sc) function c65020011.synfil(c,sc)
return c:IsSynchroSummonable(sc) and c:IsSetCard(0x3da5) return c:IsSynchroSummonable(sc) and c:IsSetCard(0xda5)
end end
function c65020011.op(e,tp,eg,ep,ev,re,r,rp) function c65020011.op(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
......
...@@ -44,7 +44,7 @@ function c65020017.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c65020017.tgop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsType(TYPE_MONSTER) then typ=TYPE_MONSTER end if tc:IsType(TYPE_MONSTER) then typ=TYPE_MONSTER end
if tc:IsType(TYPE_SPELL) then typ=TYPE_SPELL end if tc:IsType(TYPE_SPELL) then typ=TYPE_SPELL end
if tc:IsType(TYPE_TRAP) then typ=TYPE_TRAP end if tc:IsType(TYPE_TRAP) then typ=TYPE_TRAP end
if Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and Duel.IsExistingMatchingCard(c65020017.thfil,tp,LOCATION_DECK,0,1,nil,typ) and Duel.SelectYesNo(tp,aux.Stringid(tp,65020017,2)) then if Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and Duel.IsExistingMatchingCard(c65020017.thfil,tp,LOCATION_DECK,0,1,nil,typ) and Duel.SelectYesNo(tp,aux.Stringid(65020017,2)) then
local g=Duel.SelectMatchingCard(tp,c65020017.thfil,tp,LOCATION_DECK,0,1,1,nil,typ) local g=Duel.SelectMatchingCard(tp,c65020017.thfil,tp,LOCATION_DECK,0,1,1,nil,typ)
Duel.SendtoHand(g,tp,REASON_EFFECT) Duel.SendtoHand(g,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
......
...@@ -45,7 +45,7 @@ function c65020020.stfil(c) ...@@ -45,7 +45,7 @@ function c65020020.stfil(c)
end end
function c65020020.spop(e,tp,eg,ep,ev,re,r,rp) function c65020020.spop(e,tp,eg,ep,ev,re,r,rp)
local op=e:GetLabel() local op=e:GetLabel()
local g1=Duel.SelectMatchingCard(1-tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil) local g1=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
if g1:GetCount()>0 then if g1:GetCount()>0 then
Duel.HintSelection(g1) Duel.HintSelection(g1)
if Duel.SendtoHand(g1,nil,REASON_EFFECT)~=0 then if Duel.SendtoHand(g1,nil,REASON_EFFECT)~=0 then
...@@ -60,7 +60,7 @@ function c65020020.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +60,7 @@ function c65020020.spop(e,tp,eg,ep,ev,re,r,rp)
if gc then if gc then
gc:AddCounter(0x1da1,1) gc:AddCounter(0x1da1,1)
end end
elseif op==1 and Duel.GetMatchingGroupCount(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,nil)>0 and Duel.SelectYesNo(tp,aux.Stringid(65020020,0)) then elseif op==1 and Duel.GetMatchingGroupCount(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,nil)>0 and Duel.SelectYesNo(tp,aux.Stringid(65020020,0)) then
local g2=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,3,nil) local g2=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,3,nil)
if g2:GetCount()>0 then if g2:GetCount()>0 then
Duel.HintSelection(g2) Duel.HintSelection(g2)
......
...@@ -41,7 +41,7 @@ function c65020021.stfil(c) ...@@ -41,7 +41,7 @@ function c65020021.stfil(c)
end end
function c65020021.spop(e,tp,eg,ep,ev,re,r,rp) function c65020021.spop(e,tp,eg,ep,ev,re,r,rp)
local op=e:GetLabel() local op=e:GetLabel()
local g1=Duel.SelectMatchingCard(1-tp,Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,1,nil) local g1=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,1,nil)
if g1:GetCount()>0 then if g1:GetCount()>0 then
Duel.HintSelection(g1) Duel.HintSelection(g1)
if Duel.Remove(g1,POS_FACEUP,REASON_EFFECT)~=0 then if Duel.Remove(g1,POS_FACEUP,REASON_EFFECT)~=0 then
......
...@@ -76,8 +76,6 @@ function c65020024.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,8 +76,6 @@ function c65020024.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
tc:RegisterFlagEffect(0,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(65020024,0)) tc:RegisterFlagEffect(0,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(65020024,0))
local g=Duel.SelectMatchingCard(tp,Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,e:GetHandler())
Duel.HintSelection(g)
local gc=Duel.GetFirstMatchingCard(c65020024.countfil,tp,LOCATION_FZONE,0,nil) local gc=Duel.GetFirstMatchingCard(c65020024.countfil,tp,LOCATION_FZONE,0,nil)
if gc then if gc then
gc:AddCounter(0x1da1,1) gc:AddCounter(0x1da1,1)
......
...@@ -138,6 +138,8 @@ function c9310052.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -138,6 +138,8 @@ function c9310052.rmop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(4) e1:SetValue(4)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if c:IsLevel(4) then
Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT) Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT)
end
end end
end end
\ No newline at end of file
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