Commit ad9072f0 authored by Tachibana's avatar Tachibana

tnndx

parent 705995d0
......@@ -70,16 +70,16 @@ end
function cm.efilter(e,te)
return te:GetOwner()~=e:GetOwner()
end
function cm.rthcfilter(c)
function cm.rthcfilter(c,e)
local cp=e:GetHandlerPlayer()
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAbleToHandAsCost() and Duel.GetMZoneCount(tp,c,cp)>0
e:SetLabel(cp)
end
function cm.rthcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(cm.rthcfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.rthcfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,e) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,cm.rthcfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cm.rthcfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,e)
Duel.SendtoHand(g,nil,REASON_COST)
end
function cm.rthtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -40,7 +40,7 @@ function c21520121.desop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
if Duel.Destroy(tc,REASON_EFFECT)~=0 then
Duel.BreakEffect()
Duel.Draw(e:GetHandler():GetControler(),Duel.GetMatchingGroup(c21520121.effectfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil),REASON_EFFECT)
Duel.Draw(e:GetHandler():GetControler(),Duel.GetMatchingGroupCount(c21520121.effectfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil),REASON_EFFECT)
end
end
end
......
......@@ -38,7 +38,7 @@ end
function c21520142.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local b1=Duel.IsExistingMatchingCard(c21520142.effectfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
local b2=Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil)
local b2=Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler())
return b1 or b2 end
local b1=Duel.IsExistingMatchingCard(c21520142.effectfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
if not b1 then
......
......@@ -32,7 +32,7 @@ function c21520250.condition(e,tp,eg,ep,ev,re,r,rp)
and Duel.IsExistingMatchingCard(c21520250.effectfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
end
function c21520250.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c21520250.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,nil,e,tp)
if chk==0 then return Duel.IsExistingMatchingCard(c21520250.cfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,nil,e,tp)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_REMOVED)
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