Commit c0491ae4 authored by DailyShana's avatar DailyShana

fix

parent 36fad17a
......@@ -16,10 +16,13 @@ function c42994702.target(e,tp,eg,ep,ev,re,r,rp,chk)
c:RegisterFlagEffect(42994702,RESET_EVENT+0x1fc0000+RESET_PHASE+PHASE_END,0,1)
Duel.SetOperationInfo(0,CATEGORY_POSITION,c,1,0,0)
end
function c42994702.filter(c)
return c:IsFacedown() and c:GetSequence()<5
end
function c42994702.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() and Duel.ChangePosition(c,POS_FACEDOWN_DEFENSE)>0 then
local g=Duel.GetMatchingGroup(Card.IsFacedown,tp,LOCATION_MZONE,0,nil)
local g=Duel.GetMatchingGroup(c42994702.filter,tp,LOCATION_MZONE,0,nil)
Duel.ShuffleSetCard(g)
end
end
......@@ -36,8 +36,11 @@ function c52714670.initial_effect(c)
e4:SetOperation(c52714670.rmop)
c:RegisterEffect(e4)
end
function c52714670.cfilter(c,tp)
return c:GetSummonPlayer()==tp
end
function c52714670.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsControler,1,nil,1-tp)
return eg:IsExists(c52714670.cfilter,1,nil,1-tp)
end
function c52714670.spfilter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x105) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -19,11 +19,14 @@ function c59237154.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,300) end
Duel.PayLPCost(tp,300)
end
function c59237154.filter(c)
return c:IsFacedown() and c:GetSequence()<5
end
function c59237154.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFacedown,tp,LOCATION_MZONE,0,2,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c59237154.filter,tp,LOCATION_MZONE,0,2,nil) end
end
function c59237154.operation(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(Card.IsFacedown,tp,LOCATION_MZONE,0,nil)
local g=Duel.GetMatchingGroup(c59237154.filter,tp,LOCATION_MZONE,0,nil)
Duel.ShuffleSetCard(g)
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