Commit 07f07eea authored by TanakaKotoha's avatar TanakaKotoha

dededededededededededede

parent c129f4c5
...@@ -150,9 +150,6 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -150,9 +150,6 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local se=e:GetLabelObject() local se=e:GetLabelObject()
se:Reset() se:Reset()
end end
function cm.thfilter(c)
return c:IsLevel(10) and c:IsAbleToHand()
end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_SPSUMMON)==0 end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
...@@ -167,6 +164,9 @@ end ...@@ -167,6 +164,9 @@ end
function cm.thsplimit(e,c,sump,sumtype,sumpos,targetp,se) function cm.thsplimit(e,c,sump,sumtype,sumpos,targetp,se)
return not (c:IsLevel(10) or c:IsRank(10) or c:IsSetCard(0xcc3)) return not (c:IsLevel(10) or c:IsRank(10) or c:IsSetCard(0xcc3))
end end
function cm.thfilter(c)
return c:IsLevel(10) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
return Duel.IsExistingMatchingCard(Card.IsLevel,tp,LOCATION_MZONE,0,1,nil,10) and Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) return Duel.IsExistingMatchingCard(Card.IsLevel,tp,LOCATION_MZONE,0,1,nil,10) and Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil)
...@@ -179,7 +179,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -179,7 +179,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Group.CreateGroup() local g=Group.CreateGroup()
g:AddCard(e:GetHandler()) g:AddCard(e:GetHandler())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tc=Duel.SelectMatchingCard(tp,cm.thfiter,tp,LOCATION_GRAVE,0,1,1,nil) local tc=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
g:Merge(tc) g:Merge(tc)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
......
...@@ -188,7 +188,7 @@ function cm.dstg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -188,7 +188,7 @@ function cm.dstg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.dsop(e,tp,eg,ep,ev,re,r,rp) function cm.dsop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateSummon(eg) Duel.NegateSummon(eg)
Duel.Destroy(eg,REASON_EFFECT) Duel.SendtoDeck(eg,nil,2,REASON_EFFECT)
end end
function cm.toptarget(e,tp,eg,ep,ev,re,r,rp,chk) function cm.toptarget(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetFieldGroup(tp,LOCATION_PZONE,0) local g=Duel.GetFieldGroup(tp,LOCATION_PZONE,0)
......
...@@ -28,7 +28,7 @@ function cm.splimit(e,c,tp,sumtp,sumpos) ...@@ -28,7 +28,7 @@ function cm.splimit(e,c,tp,sumtp,sumpos)
end end
--e3 --e3
function cm.tefilter(c) function cm.tefilter(c)
return c:IsSetCard(0xcc3) and not c:IsCode(m+4) and c:IsAbleToHand() return c:IsSetCard(0xcc3) and c:IsType(TYPE_MONSTER) and not c:IsCode(m+4) and c:IsAbleToHand()
end end
function cm.tetg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tetg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.tefilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.tefilter,tp,LOCATION_DECK,0,1,nil) 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