Commit 7c7e0a60 authored by Huangnan's avatar Huangnan

fix

parent 8673163f
Pipeline #42836 failed with stages
in 8 minutes and 17 seconds
......@@ -29,7 +29,7 @@ function cm.initial_effect(c)
end
--Effect 1
function cm.setfilter1(c,tp)
return c:IsFaceup()
return c:IsFaceup() and Duel.GetMZoneCount(tp,c)>0
and c:GetOriginalType()&TYPE_PENDULUM~=0
and Duel.IsExistingMatchingCard(cm.setfilter2,tp,LOCATION_EXTRA,0,1,nil,c:GetCode())
end
......@@ -43,8 +43,8 @@ function cm.togtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(cm.setfilter1,tp,LOCATION_ONFIELD,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,cm.setfilter1,tp,LOCATION_ONFIELD,0,1,1,nil,tp)
Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_SUMMON,c,1,tp,LOCATION_EXTRA)
Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,nil,1,tp,LOCATION_ONFIELD)
Duel.SetOperationInfo(0,CATEGORY_SUMMON,nil,1,0,0)
end
function cm.togop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -64,7 +64,7 @@ end
function s.spfilter(c,e,tp)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0xc83) and
not c:IsAttribute(ATTRIBUTE_WIND) and c:CheckFusionMaterial()
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false)
end
function s.futg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_FMATERIAL)
......
......@@ -60,7 +60,7 @@ end
function s.spfilter(c,e,tp)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0xc83) and
not c:IsAttribute(ATTRIBUTE_EARTH) and c:CheckFusionMaterial()
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false)
end
function s.futg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_FMATERIAL)
......
......@@ -65,7 +65,7 @@ end
function s.spfilter(c,e,tp)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0xc83) and
not c:IsAttribute(ATTRIBUTE_WATER) and c:CheckFusionMaterial()
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and
end
function s.futg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_FMATERIAL)
......
......@@ -14,7 +14,7 @@ function cm.initial_effect(c)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetRange(LOCATION_PZONE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetCountLimit(1,m)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.tg)
e1:SetOperation(cm.op)
......@@ -59,7 +59,7 @@ function cm.initial_effect(c)
e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e6:SetRange(LOCATION_MZONE)
e6:SetCode(EVENT_PHASE+PHASE_STANDBY)
e6:SetCountLimit(1,m+100+EFFECT_COUNT_CODE_OATH)
e6:SetCountLimit(1)
e6:SetCondition(cm.lkcon)
e6:SetCost(cm.lkcost)
e6:SetTarget(cm.tg3)
......
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