Commit ad9072f0 authored by Tachibana's avatar Tachibana

tnndx

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