Commit 98a56531 authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent b618c71f
...@@ -93,7 +93,7 @@ end ...@@ -93,7 +93,7 @@ end
function c1111005.cost2(e,tp,eg,ep,ev,re,r,rp,chk) function c1111005.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() end if chk==0 then return c:IsAbleToDeckAsCost() end
Duel.HintSelection(c) Duel.HintSelection(Group.FromCards(c))
Duel.SendtoDeck(c,nil,2,REASON_COST) Duel.SendtoDeck(c,nil,2,REASON_COST)
end end
-- --
......
...@@ -8,7 +8,7 @@ function c114015.initial_effect(c) ...@@ -8,7 +8,7 @@ function c114015.initial_effect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_DESTROY) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_DESTROY)
e1:SetRange(LOCATION_PZONE) e1:SetRange(LOCATION_PZONE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,114015) e1:SetCountLimit(1,114015+EFFECT_COUNT_CODE_DUEL)
e1:SetCost(c114015.thcost) e1:SetCost(c114015.thcost)
e1:SetTarget(c114015.thtg) e1:SetTarget(c114015.thtg)
e1:SetOperation(c114015.thop) e1:SetOperation(c114015.thop)
...@@ -39,7 +39,7 @@ function c114015.counterfilter(c) ...@@ -39,7 +39,7 @@ function c114015.counterfilter(c)
return c:IsSetCard(0xca3) return c:IsSetCard(0xca3)
end end
function c114015.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c114015.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(114015,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetCustomActivityCount(114015,tp,ACTIVITY_SPSUMMON)==0 and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_PZONE,0,1,e:GetHandler(),0xca3) end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
...@@ -49,6 +49,8 @@ function c114015.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -49,6 +49,8 @@ function c114015.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetTarget(c114015.splimit) e1:SetTarget(c114015.splimit)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local g=Duel.GetFieldGroup(tp,LOCATION_PZONE,0)
Duel.Destroy(g,REASON_COST)
end end
function c114015.splimit(e,c,tp,sumtp,sumpos) function c114015.splimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0xca3) return not c:IsSetCard(0xca3)
......
...@@ -26,12 +26,8 @@ function cm.initial_effect(c) ...@@ -26,12 +26,8 @@ function cm.initial_effect(c)
e11:SetOperation(cm.disop) e11:SetOperation(cm.disop)
c:RegisterEffect(e11) c:RegisterEffect(e11)
end end
function cm.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0xa85)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return re:GetHandler():GetLocation()~=LOCATION_ONFIELD
and re:GetHandler():GetLocation()~=LOCATION_ONFIELD
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)>0 end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)>0 end
......
...@@ -20,6 +20,7 @@ function c33500216.initial_effect(c) ...@@ -20,6 +20,7 @@ function c33500216.initial_effect(c)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,33500316)
e2:SetTarget(c33500216.xyztarget) e2:SetTarget(c33500216.xyztarget)
e2:SetOperation(c33500216.xyzop) e2:SetOperation(c33500216.xyzop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -82,7 +83,7 @@ function c33500216.distg(e,c) ...@@ -82,7 +83,7 @@ function c33500216.distg(e,c)
end end
function c33500216.discon(e,tp,eg,ep,ev,re,r,rp) function c33500216.discon(e,tp,eg,ep,ev,re,r,rp)
local ac=e:GetLabel() local ac=e:GetLabel()
return c:IsLevel(ac) return re:GetHandler():IsLevel(ac)
end end
function c33500216.disop(e,tp,eg,ep,ev,re,r,rp) function c33500216.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
......
...@@ -26,6 +26,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,6 +26,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
......
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