Commit f02951e9 authored by POLYMER's avatar POLYMER

fix

parent b20d9921
...@@ -33,7 +33,7 @@ function c22020900.atkcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c22020900.atkcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,22020910) return Duel.IsPlayerAffectedByEffect(tp,22020910)
end end
function c22020900.filter(c,e,tp,zone) function c22020900.filter(c,e,tp,zone)
return c:IsLevelBelow(4) and c:IsSetCard(0x2ff1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) return c:IsLevelBelow(4) and c:IsSetCard(0x6ff1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone)
end end
function c22020900.target(e,tp,eg,ep,ev,re,r,rp,chk) function c22020900.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
...@@ -18,6 +18,7 @@ function c22021340.initial_effect(c) ...@@ -18,6 +18,7 @@ function c22021340.initial_effect(c)
e2:SetCondition(c22021340.handcon) e2:SetCondition(c22021340.handcon)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c22021340.effect_with_altria=true
function c22021340.condition(e,tp,eg,ep,ev,re,r,rp) function c22021340.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev) return ep~=tp and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev)
end end
......
...@@ -4,7 +4,7 @@ function c22022460.initial_effect(c) ...@@ -4,7 +4,7 @@ function c22022460.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
--material --material
aux.AddMaterialCodeList(c,22020850) aux.AddMaterialCodeList(c,22020850)
aux.AddFusionProcFunRep(c,c22022440.ffilter,9,true) aux.AddFusionProcFunRep(c,c22022460.ffilter,9,true)
--spsummon condition --spsummon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -71,6 +71,9 @@ function c22022460.initial_effect(c) ...@@ -71,6 +71,9 @@ function c22022460.initial_effect(c)
e6:SetOperation(c22022460.disop) e6:SetOperation(c22022460.disop)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function c22022460.ffilter(c)
return c:IsCode(22020850) or aux.IsCodeListed(c,22020850)
end
function c22022460.spfilter(c,e,tp) function c22022460.spfilter(c,e,tp)
return (c:IsCode(22020850) or aux.IsCodeListed(c,22020850)) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (c:IsCode(22020850) or aux.IsCodeListed(c,22020850)) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
......
...@@ -8,11 +8,19 @@ function c22023380.initial_effect(c) ...@@ -8,11 +8,19 @@ function c22023380.initial_effect(c)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,22023380) e1:SetCountLimit(1,22023380)
e1:SetCondition(c22023380.descon)
e1:SetCost(c22023380.cost) e1:SetCost(c22023380.cost)
e1:SetTarget(c22023380.target) e1:SetTarget(c22023380.target)
e1:SetOperation(c22023380.operation) e1:SetOperation(c22023380.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c22023380.descfilter(c)
return c:IsSetCard(0xff1)
end
function c22023380.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c22023380.descfilter,tp,LOCATION_HAND,0,1,e:GetHandler())
end
function c22023380.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c22023380.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsDiscardable() end if chk==0 then return c:IsDiscardable() 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