Commit 86626922 authored by TanakaKotoha's avatar TanakaKotoha

iiiiiiiiiiiiiiiiiii

parent 2bb56b70
...@@ -28,16 +28,16 @@ end ...@@ -28,16 +28,16 @@ end
function cm.isset(c) function cm.isset(c)
return c:GetCode()>=tg[1] and c:GetCode()<=tg[2] return c:GetCode()>=tg[1] and c:GetCode()<=tg[2]
end end
function cm.tgtgfil(c) function cm.tgtgfil(c,tp)
return c:IsType(TYPE_TUNER) and Duel.IsExistingMatchingCard(cm.tgthfil,tp,LOCATION_DECK,0,1,nil,c:GetAttribute(),c:GetRace()) return c:IsType(TYPE_TUNER) and Duel.IsExistingMatchingCard(cm.tgthfil,tp,LOCATION_DECK,0,1,nil,c:GetAttribute(),c:GetRace())
end end
function cm.tgthfil(c,att,rac) function cm.tgthfil(c,att,rac)
return c:IsAbleToHand() and c:IsAttribute(att) and c:IsRace(rac) return c:IsAbleToHand() and c:IsAttribute(att) and c:IsRace(rac)
end end
function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and cm.tgtgfil(chkc) and chkc:IsControler(tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and cm.tgtgfil(chkc,tp) and chkc:IsControler(tp) end
if chk==0 then return Duel.IsExistingTarget(cm.tgtgfil,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(cm.tgtgfil,tp,LOCATION_GRAVE,0,1,nil,tp) end
local g=Duel.SelectTarget(tp,cm.tgtgfil,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectTarget(tp,cm.tgtgfil,tp,LOCATION_GRAVE,0,1,1,nil,tp)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
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