Commit c60b22b8 authored by POLYMER's avatar POLYMER

fix

parent 9331ce90
...@@ -75,6 +75,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,6 +75,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_ONFIELD,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_ONFIELD,0,1,1,nil)
if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.SendtoHand(c,nil,REASON_EFFECT)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
......
...@@ -94,7 +94,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -94,7 +94,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
aux.GCheckAdditional=nil aux.GCheckAdditional=nil
if not mat or mat:GetCount()==0 then return end if not mat or mat:GetCount()==0 then return end
tc:SetMaterial(mat) tc:SetMaterial(mat)
local mat2=mat:Filter(Card.IsLocation,nil,LOCATION_DECK):Filter(s.mfilter,nil) local mat2=mat:Filter(Card.IsLocation,nil,LOCATION_DECK+LOCATION_GRAVE):Filter(s.mfilter,nil)
mat:Sub(mat2) mat:Sub(mat2)
Duel.ReleaseRitualMaterial(mat) Duel.ReleaseRitualMaterial(mat)
Duel.SendtoGrave(mat2,REASON_EFFECT+REASON_MATERIAL+REASON_RITUAL) Duel.SendtoGrave(mat2,REASON_EFFECT+REASON_MATERIAL+REASON_RITUAL)
......
...@@ -42,8 +42,8 @@ function c67200251.initial_effect(c) ...@@ -42,8 +42,8 @@ function c67200251.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c67200251.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c67200251.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x674) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x674) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x674) local sg=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x674)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
end end
function c67200251.thfilter(c) function c67200251.thfilter(c)
......
...@@ -41,8 +41,8 @@ function c67200254.spfilter1(c,tp) ...@@ -41,8 +41,8 @@ function c67200254.spfilter1(c,tp)
return c:IsFaceup() and c:IsSetCard(0x674) and c:IsReleasable() return c:IsFaceup() and c:IsSetCard(0x674) and c:IsReleasable()
end end
function c67200254.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c67200254.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c67200254.spfilter1,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c67200254.spfilter1,1,nil) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c67200254.spfilter1,1,1,nil) local sg=Duel.SelectReleaseGroup(tp,c67200254.spfilter1,1,1,nil)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
end end
function c67200254.thfilter(c) function c67200254.thfilter(c)
......
...@@ -39,8 +39,8 @@ function c67200259.spfilter1(c,tp) ...@@ -39,8 +39,8 @@ function c67200259.spfilter1(c,tp)
return c:IsFaceup() and c:IsSetCard(0x674) and c:IsReleasable() return c:IsFaceup() and c:IsSetCard(0x674) and c:IsReleasable()
end end
function c67200259.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c67200259.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c67200259.spfilter1,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c67200259.spfilter1,1,nil) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c67200259.spfilter1,1,1,nil) local sg=Duel.SelectReleaseGroup(tp,c67200259.spfilter1,1,1,nil)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
end end
function c67200259.thfilter(c) function c67200259.thfilter(c)
......
...@@ -29,7 +29,7 @@ function c67200287.initial_effect(c) ...@@ -29,7 +29,7 @@ function c67200287.initial_effect(c)
e3:SetRange(LOCATION_EXTRA) e3:SetRange(LOCATION_EXTRA)
e3:SetCountLimit(1,67200287+EFFECT_COUNT_CODE_OATH) e3:SetCountLimit(1,67200287+EFFECT_COUNT_CODE_OATH)
e3:SetCondition(c67200287.spcon2) e3:SetCondition(c67200287.spcon2)
e3:SetOperation(c67200287.spop2) e3:SetOperation(c67200287.spop2)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--Equip --Equip
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -51,7 +51,7 @@ function c67200287.reptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -51,7 +51,7 @@ function c67200287.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return eg:IsExists(c67200287.repfilter,1,nil,tp) end if chk==0 then return eg:IsExists(c67200287.repfilter,1,nil,tp) end
if Duel.SelectYesNo(tp,aux.Stringid(67200287,1)) then if Duel.SelectYesNo(tp,aux.Stringid(67200287,1)) then
Duel.SendtoExtraP(c,tp,REASON_EFFECT) Duel.SendtoExtraP(c,tp,REASON_EFFECT+REASON_REPLACE)
return true return true
else return false end else return false end
end end
...@@ -97,19 +97,20 @@ function c67200287.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -97,19 +97,20 @@ function c67200287.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
-- --
function c67200287.spfilter2(c,tp,spsummoncard) function c67200287.spfilter2(c,tp,mc)
return Duel.GetLocationCountFromEx(tp,tp,c,spsummoncard)>0 and c:IsSetCard(0x674) and c:IsReleasable() and c:IsFaceup() return Duel.GetLocationCountFromEx(tp,tp,Group.FromCards(c,mc))>0 and c:IsSetCard(0x674) and c:IsReleasable() and c:IsFaceup()
end end
function c67200287.spcon2(e,c) function c67200287.spcon2(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local g=Duel.GetMatchingGroup(c67200287.spfilter2,tp,LOCATION_ONFIELD,0,nil,tp,c) local g=Duel.GetMatchingGroup(c67200287.spfilter2,tp,LOCATION_ONFIELD,0,nil)
return #g>0 return g:IsExists(c67200287.spfilter2,1,nil,tp,g)
end end
function c67200287.spop2(e,tp,eg,ep,ev,re,r,rp,c) function c67200287.spop2(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetMatchingGroup(c67200287.spfilter2,tp,LOCATION_ONFIELD,0,nil,tp,c) local g=Duel.GetMatchingGroup(c67200287.spfilter2,tp,LOCATION_ONFIELD,0,nil,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g1=g:Select(tp,1,1,nil) local g1=g:FilterSelect(tp,c67200287.spfilter2,1,1,nil,tp,g)
Duel.Release(g1,REASON_COST) Duel.Release(g1,REASON_COST)
end end
-- --
......
...@@ -13,6 +13,7 @@ function c67200309.initial_effect(c) ...@@ -13,6 +13,7 @@ function c67200309.initial_effect(c)
--to hand --to hand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(67200309,1)) e2:SetDescription(aux.Stringid(67200309,1))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_DECK) e2:SetCode(EVENT_TO_DECK)
......
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