Commit 3371898e authored by Tachibana's avatar Tachibana

得得得得得

parent e3981e67
Pipeline #12524 passed with stages
in 28 minutes and 6 seconds
......@@ -40,7 +40,6 @@ function c17030990.initial_effect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_PHASE+PHASE_END)
e4:SetRange(LOCATION_REMOVED)
e4:SetCountLimit(1,17030990)
e4:SetCondition(c17030990.thcon2)
e4:SetTarget(c17030990.thtg2)
e4:SetOperation(c17030990.thop2)
......
......@@ -13,7 +13,7 @@ function cm.initial_effect(c)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE)
e1:SetTargetRange(1,0)
e1:SetTarget(cm.psplimit)
e1:SetTarget(cm.splimit)
c:RegisterEffect(e1)
--special summon rule
local e2=Effect.CreateEffect(c)
......@@ -62,8 +62,8 @@ function cm.initial_effect(c)
e6:SetOperation(cm.ctop)
c:RegisterEffect(e6)
end
function cm.psplimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0x37f6) and bit.band(sumtp,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
function cm.splimit(e,c)
return not c:IsSetCard(0xaa)
end
function cm.sprfilter(c)
return c:IsSetCard(0x37f6) and c:IsType(TYPE_PENDULUM) and c:IsReleasable()
......
......@@ -65,7 +65,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil)
local b1=Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
local b2=Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_GRAVE,1,nil)
local b3=(Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1))
if chk==0 then return b1 or b2 or b3 end
......@@ -92,7 +92,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(sel)
if sel==1 then
e:SetCategory(CATEGORY_DESTROY)
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_MZONE,nil)
local g=Duel.GetMatchingGroup(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
elseif sel==2 then
e:SetCategory(CATEGORY_REMOVE)
......@@ -104,7 +104,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local sel=e:GetLabel()
if sel==1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,nil,tp,0,LOCATION_MZONE,1,1,nil)
local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT)
......
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