Commit c43bfa9f authored by Huangnan's avatar Huangnan

fix

parent aa830a1b
Pipeline #41324 failed with stages
in 1 minute and 19 seconds
......@@ -9,6 +9,7 @@ function cm.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND+LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(cm.obcon)
e1:SetTarget(cm.hsptg)
e1:SetOperation(cm.hspop)
c:RegisterEffect(e1)
......@@ -118,6 +119,9 @@ end
function cm.obcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end
function cm.hspfilter1(c,e)
return not c:IsImmuneToEffect(e)
end
......
......@@ -79,7 +79,7 @@ function s.op1(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local ag=g:Select(tp,1,1,nil)
Duel.SpecialSummon(ag,nil,tp,tp,false,false,0)
Duel.SpecialSummon(ag,nil,tp,tp,false,false,POS_FACEUP)
end
end
......
......@@ -22,6 +22,7 @@ function c61200309.initial_effect(c)
e2:SetTarget(s.tg2)
e2:SetOperation(s.op2)
c:RegisterEffect(e2)
end
function s.f1(c)
......@@ -88,6 +89,8 @@ function s.op1(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(-tc:GetAttack())
c:RegisterEffect(e1)
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
tc=g2:GetNext()
else
Duel.Remove(c,POS_FACEDOWN,REASON_EFFECT)
end
......
......@@ -5,7 +5,7 @@ function c61200401.initial_effect(c)
c:EnableReviveLimit()
local tp=c:GetControler()
--融合素材
aux.AddFusionProcMixRep(c,false,false,s.f1,1,63,61200101,tp)
aux.AddFusionProcCodeFunRep(c,61200101,aux.FilterBoolFunction(s.f1,c),1,99,false,true)
--召唤限制
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -46,7 +46,8 @@ function c61200401.initial_effect(c)
c:RegisterEffect(e4)
end
function s.f1(c,tp)
function s.f1(c,mc)
local tp=mc:GetOwner()
return c:IsFusionType(TYPE_MONSTER) and (c:GetControler()==tp or c:GetOwner()==tp) and c:IsFaceup()
end
......
......@@ -33,10 +33,14 @@ function c82000742.initial_effect(c)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,82000743)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e3:SetCondition(c82000742.spycon)
e3:SetTarget(c82000742.spytg)
e3:SetOperation(c82000742.spyop)
c:RegisterEffect(e3)
end
function c82000742.spycon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end
function c82000742.spytg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local ct=Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,0)
......
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