Commit bbe64bd2 authored by POLYMER's avatar POLYMER

fix

parent cf7d80c6
......@@ -53,7 +53,7 @@ function cm.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_REMOVED+LOCATION_GRAVE,0,nil)
if chk==0 then return true end
local aa=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_REMOVED+LOCATION_GRAVE,0,2,2,nil)
Duel.SendtoDeck(aa,tp,0,REASON_EFFECT)
Duel.SendtoDeck(aa,nil,0,REASON_EFFECT)
end
function cm.filter0(g)
return g:IsExists(Card.IsType,1,nil,TYPE_RITUAL)
......@@ -71,7 +71,7 @@ function cm.discon2(e,tp,eg,ep,ev,re,r,rp)
end
function cm.disop2(e,tp,eg,ep,ev,re,r,rp)
local aa=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_REMOVED+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_REMOVED+LOCATION_GRAVE,1,2,nil)
Duel.SendtoDeck(aa,tp,0,REASON_EFFECT)
Duel.SendtoDeck(aa,nil,0,REASON_EFFECT)
end
function cm.efilter(e,te,c)
if te:GetOwnerPlayer()==e:GetHandlerPlayer() or not te:IsActivated() then return false end
......@@ -102,14 +102,20 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RegisterEffect(e1)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local aa=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK,0,1,1,nil,13000753)
Duel.DisableShuffleCheck()
Duel.SendtoHand(aa,tp,REASON_EFFECT)
local bb=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK,0,1,1,nil,13000751)
Duel.DisableShuffleCheck()
Duel.SendtoHand(bb,tp,REASON_EFFECT)
local cc=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK,0,1,1,nil,13000749)
Duel.DisableShuffleCheck()
Duel.SendtoHand(cc,tp,REASON_EFFECT)
local sg=Duel.SelectMatchingCard(tp,Card.IsType,tp,LOCATION_HAND,0,3,3,nil,TYPE_RITUAL)
Duel.SendtoDeck(sg,tp,0,REASON_EFFECT)
Duel.SendtoDeck(sg,nil,0,REASON_EFFECT)
end
......
......@@ -68,7 +68,7 @@ end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_MZONE,0,1,c,e) and c:IsCanOverlay() then
local aa=Duel.SelectMatchingCard(tp,cm.tgfilter,tp,LOCATION_MZONE,0,1,1,c,e):GetFirst
local aa=Duel.SelectMatchingCard(tp,cm.tgfilter,tp,LOCATION_MZONE,0,1,1,c,e):GetFirst()
Duel.Overlay(aa,c)
end
end
......
......@@ -75,7 +75,7 @@ function c21185825.gf(c,lc,sg)
end
function c21185825.LCheckGoal(sg,tp,lc,lmat)
return #sg>=4
and sg:IsExists(c21185825.gf,1,nil,cl,sg)
and sg:IsExists(c21185825.gf,1,nil,lc,sg)
and sg:CheckWithSumEqual(aux.GetLinkCount,5,#sg,#sg)
and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0
and not sg:IsExists(aux.LUncompatibilityFilter,1,nil,sg,lc,tp)
......@@ -85,12 +85,12 @@ function c21185825.LCheckGoal2(sg,tp,lc,lmat)
return #sg==1
and sg:IsExists(c21185825.onlycheck,1,nil,lc,sg)
or #sg>=4
and sg:IsExists(c21185825.gf,1,nil,cl,sg)
and sg:IsExists(c21185825.gf,1,nil,lc,sg)
and sg:CheckWithSumEqual(aux.GetLinkCount,5,#sg,#sg)
and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0
and not sg:IsExists(aux.LUncompatibilityFilter,1,nil,sg,lc,tp)
and (not lmat or sg:IsContains(lmat))
and #sg==sg:Filter(Card.IsLinkType,nil)
and #sg==sg:Filter(Card.IsLinkType,nil,TYPE_EFFECT)
end
function c21185825.linkcon()
return function(e,c,og,lmat,min,max)
......
......@@ -92,7 +92,7 @@ function cm.negop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.negop1(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
if rc:GetControler()~=tp and Duel.SelectEffectYesNo(tp,e:GetHandler()) then
if rp~=tp and Duel.SelectEffectYesNo(tp,e:GetHandler()) then
Duel.Hint(HINT_CARD,0,m)
Duel.NegateEffect(ev)
Duel.Remove(rc,POS_FACEUP,REASON_EFFECT)
......
......@@ -13,7 +13,7 @@ function cm.initial_effect(c)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SUMMON_SUCCESS)
......@@ -28,7 +28,7 @@ function cm.initial_effect(c)
--to hand
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1))
e3:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_TO_GRAVE)
e3:SetProperty(EFFECT_FLAG_DELAY)
......
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