Commit 2442c942 authored by mercury233's avatar mercury233

fix

parent 5287b3c6
...@@ -88,8 +88,8 @@ function c101109012.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,8 +88,8 @@ function c101109012.activate(e,tp,eg,ep,ev,re,r,rp)
if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then
local mat1=Duel.SelectFusionMaterial(tp,tc,mg,e:GetHandler(),chkf) local mat1=Duel.SelectFusionMaterial(tp,tc,mg,e:GetHandler(),chkf)
tc:SetMaterial(mat1) tc:SetMaterial(mat1)
if mat1:IsExists(Card.IsFacedown,1,nil) then if mat1:IsExists(c101109012.fdfilter,1,nil) then
local cg=mat1:Filter(Card.IsFacedown,nil) local cg=mat1:Filter(c101109012.fdfilter,nil)
Duel.ConfirmCards(1-tp,cg) Duel.ConfirmCards(1-tp,cg)
end end
Duel.SendtoDeck(mat1,nil,SEQ_DECKTOP,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION) Duel.SendtoDeck(mat1,nil,SEQ_DECKTOP,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
...@@ -115,6 +115,9 @@ function c101109012.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -115,6 +115,9 @@ function c101109012.activate(e,tp,eg,ep,ev,re,r,rp)
tc:CompleteProcedure() tc:CompleteProcedure()
end end
end end
function c101109012.fdfilter(c)
return c:IsLocation(LOCATION_MZONE) and c:IsFacedown() or c:IsLocation(LOCATION_HAND)
end
function c101109012.seqfilter(c,tp) function c101109012.seqfilter(c,tp)
return c:IsLocation(LOCATION_DECK) and c:IsControler(tp) return c:IsLocation(LOCATION_DECK) and c:IsControler(tp)
end end
...@@ -93,8 +93,8 @@ function c101109013.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,8 +93,8 @@ function c101109013.activate(e,tp,eg,ep,ev,re,r,rp)
if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then
local mat1=Duel.SelectFusionMaterial(tp,tc,mg,e:GetHandler(),chkf) local mat1=Duel.SelectFusionMaterial(tp,tc,mg,e:GetHandler(),chkf)
tc:SetMaterial(mat1) tc:SetMaterial(mat1)
if mat1:IsExists(Card.IsFacedown,1,nil) then if mat1:IsExists(c101109013.fdfilter,1,nil) then
local cg=mat1:Filter(Card.IsFacedown,nil) local cg=mat1:Filter(c101109013.fdfilter,nil)
Duel.ConfirmCards(1-tp,cg) Duel.ConfirmCards(1-tp,cg)
end end
Duel.SendtoDeck(mat1,nil,SEQ_DECKTOP,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION) Duel.SendtoDeck(mat1,nil,SEQ_DECKTOP,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
...@@ -120,6 +120,9 @@ function c101109013.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -120,6 +120,9 @@ function c101109013.activate(e,tp,eg,ep,ev,re,r,rp)
tc:CompleteProcedure() tc:CompleteProcedure()
end end
end end
function c101109013.fdfilter(c)
return c:IsLocation(LOCATION_MZONE) and c:IsFacedown() or c:IsLocation(LOCATION_HAND)
end
function c101109013.seqfilter(c,tp) function c101109013.seqfilter(c,tp)
return c:IsLocation(LOCATION_DECK) and c:IsControler(tp) return c:IsLocation(LOCATION_DECK) and c:IsControler(tp)
end end
...@@ -20,7 +20,7 @@ function c101109014.initial_effect(c) ...@@ -20,7 +20,7 @@ function c101109014.initial_effect(c)
e3:SetCode(EVENT_TO_GRAVE) e3:SetCode(EVENT_TO_GRAVE)
e3:SetCountLimit(1,101109014+100) e3:SetCountLimit(1,101109014+100)
e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetTarget(c101109014.condition) e3:SetCondition(c101109014.condition)
e3:SetTarget(c101109014.target) e3:SetTarget(c101109014.target)
e3:SetOperation(c101109014.activate) e3:SetOperation(c101109014.activate)
c:RegisterEffect(e3) c:RegisterEffect(e3)
...@@ -42,7 +42,7 @@ function c101109014.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c101109014.tgop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) and Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)>0 then if e:GetHandler():IsRelateToEffect(e) and Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c101109014.tgfilter,tp,LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c101109014.tgfilter,tp,LOCATION_HAND,0,1,1,nil)
if #g>0 and Duel.SendtoGrave(g,REASON_EFFECT)>0 then if #g>0 and Duel.SendtoGrave(g,REASON_EFFECT)>0 and g:GetFirst():IsLocation(LOCATION_GRAVE) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.DiscardDeck(tp,3,REASON_EFFECT) Duel.DiscardDeck(tp,3,REASON_EFFECT)
end end
...@@ -100,8 +100,8 @@ function c101109014.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,8 +100,8 @@ function c101109014.activate(e,tp,eg,ep,ev,re,r,rp)
if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then
local mat1=Duel.SelectFusionMaterial(tp,tc,mg,e:GetHandler(),chkf) local mat1=Duel.SelectFusionMaterial(tp,tc,mg,e:GetHandler(),chkf)
tc:SetMaterial(mat1) tc:SetMaterial(mat1)
if mat1:IsExists(Card.IsFacedown,1,nil) then if mat1:IsExists(c101109014.fdfilter,1,nil) then
local cg=mat1:Filter(Card.IsFacedown,nil) local cg=mat1:Filter(c101109014.fdfilter,nil)
Duel.ConfirmCards(1-tp,cg) Duel.ConfirmCards(1-tp,cg)
end end
Duel.SendtoDeck(mat1,nil,SEQ_DECKTOP,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION) Duel.SendtoDeck(mat1,nil,SEQ_DECKTOP,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
...@@ -127,6 +127,9 @@ function c101109014.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -127,6 +127,9 @@ function c101109014.activate(e,tp,eg,ep,ev,re,r,rp)
tc:CompleteProcedure() tc:CompleteProcedure()
end end
end end
function c101109014.fdfilter(c)
return c:IsLocation(LOCATION_MZONE) and c:IsFacedown() or c:IsLocation(LOCATION_HAND)
end
function c101109014.seqfilter(c,tp) function c101109014.seqfilter(c,tp)
return c:IsLocation(LOCATION_DECK) and c:IsControler(tp) return c:IsLocation(LOCATION_DECK) and c:IsControler(tp)
end end
...@@ -32,6 +32,7 @@ function c101109042.initial_effect(c) ...@@ -32,6 +32,7 @@ function c101109042.initial_effect(c)
e3:SetCategory(CATEGORY_DECKDES) e3:SetCategory(CATEGORY_DECKDES)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_TO_GRAVE) e3:SetCode(EVENT_TO_GRAVE)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCountLimit(1,101109042+200) e3:SetCountLimit(1,101109042+200)
e3:SetCondition(c101109042.discon) e3:SetCondition(c101109042.discon)
e3:SetTarget(c101109042.distg) e3:SetTarget(c101109042.distg)
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
function c101109063.initial_effect(c) function c101109063.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -25,6 +24,7 @@ function c101109063.initial_effect(c) ...@@ -25,6 +24,7 @@ function c101109063.initial_effect(c)
e2:SetCode(EVENT_PHASE+PHASE_BATTLE_START) e2:SetCode(EVENT_PHASE+PHASE_BATTLE_START)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1,101109063+100) e2:SetCountLimit(1,101109063+100)
e2:SetCondition(c101109063.atkcon)
e2:SetTarget(c101109063.atktg) e2:SetTarget(c101109063.atktg)
e2:SetOperation(c101109063.atkop) e2:SetOperation(c101109063.atkop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -76,6 +76,9 @@ function c101109063.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,6 +76,9 @@ function c101109063.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,1,REASON_EFFECT) Duel.SendtoDeck(tc,nil,1,REASON_EFFECT)
end end
end end
function c101109063.atkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==1-tp
end
function c101109063.atkfilter(c) function c101109063.atkfilter(c)
return not c:IsPublic() and c:IsSetCard(0x146) and c:IsType(TYPE_MONSTER) return not c:IsPublic() and c:IsSetCard(0x146) and c:IsType(TYPE_MONSTER)
end end
......
...@@ -10,7 +10,7 @@ function c101109071.initial_effect(c) ...@@ -10,7 +10,7 @@ function c101109071.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,101109071) e1:SetCountLimit(1,101109071)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(c101109071.condition) e1:SetCondition(c101109071.condition)
e1:SetTarget(c101109071.target) e1:SetTarget(c101109071.target)
e1:SetOperation(c101109071.activate) e1:SetOperation(c101109071.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -10,7 +10,7 @@ function c101109072.initial_effect(c) ...@@ -10,7 +10,7 @@ function c101109072.initial_effect(c)
--quick --quick
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101109072,0)) e2:SetDescription(aux.Stringid(101109072,0))
e2:SetCategory(CATEGORY_DISABLE+CATEGORY_SEARCH+CATEGORY_TOGRAVE) e2:SetCategory(CATEGORY_DISABLE+CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
......
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