Commit d1f5e56a authored by VanillaSalt's avatar VanillaSalt

fix

parent fb7fa713
......@@ -11,12 +11,12 @@ function c20579538.initial_effect(c)
e1:SetTarget(c20579538.target)
e1:SetOperation(c20579538.operation)
c:RegisterEffect(e1)
--tohand
--spsummon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(20579538,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetCountLimit(1,20579539)
e2:SetCondition(c20579538.spcon)
......
......@@ -18,13 +18,13 @@ function c2266498.cfilter(c,e,tp,m,ft)
local sg=Group.CreateGroup()
return m:IsExists(c2266498.spselect,1,nil,c,0,ft,m,sg)
end
function c2266498.spgoal(c,mc,ct,sg)
function c2266498.spgoal(mc,ct,sg)
return sg:CheckWithSumEqual(Card.GetRitualLevel,mc:GetLevel(),ct,ct,mc) and sg:GetClassCount(Card.GetCode)==ct
end
function c2266498.spselect(c,mc,ct,ft,m,sg)
sg:AddCard(c)
ct=ct+1
local res=(ft>=ct and c2266498.spgoal(c,mc,ct,sg)) or m:IsExists(c2266498.spselect,1,sg,mc,ct,ft,m,sg)
local res=(ft>=ct and c2266498.spgoal(mc,ct,sg)) or m:IsExists(c2266498.spselect,1,sg,mc,ct,ft,m,sg)
sg:RemoveCard(c)
return res
end
......@@ -60,7 +60,7 @@ function c2266498.activate(e,tp,eg,ep,ev,re,r,rp)
local cg=mg:Filter(c2266498.spselect,sg,tc,i,ft,mg,sg)
if cg:GetCount()==0 then break end
local min=1
if c2266498.spgoal(c,tc,ct,sg) then
if c2266498.spgoal(tc,i,sg) then
if not Duel.SelectYesNo(tp,210) then break end
min=0
end
......
......@@ -52,7 +52,7 @@ function c71650854.condition(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
and not Duel.CheckPhaseActivity()
end
function c71650854.indcon(e,tp,eg,ep,ev,re,r,rp)
function c71650854.indcon(e)
return Duel.GetCurrentPhase()==PHASE_MAIN1
end
function c71650854.setlimit(e,c,tp)
......
......@@ -19,7 +19,7 @@ function c93503294.initial_effect(c)
--to hand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(93503294,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetCode(EVENT_TO_GRAVE)
......
......@@ -13,7 +13,7 @@ end
function c98126725.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d)
end
function c98126725.atcon(e,tp,eg,ep,ev,re,r,rp,chk)
function c98126725.atcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c98126725.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c98126725.attg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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