Commit ee552789 authored by TanakaKotoha's avatar TanakaKotoha

dededededededededededede

parent 73650c08
No preview for this file type
...@@ -42,9 +42,12 @@ function c1184051.op1(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -42,9 +42,12 @@ function c1184051.op1(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoDeck(sg,nil,2,REASON_COST) Duel.SendtoDeck(sg,nil,2,REASON_COST)
end end
-- --
function c1184051.tfilter2(c)
return c:IsSetCard(0x3e12) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
end
function c1184051.tg2(e,tp,eg,ep,ev,re,r,rp,chk) function c1184051.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_GRAVE,0,nil) local sg=Duel.GetMatchingGroup(c1184051.tfilter2,tp,LOCATION_GRAVE,0,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,sg,sg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,sg,sg:GetCount(),0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
...@@ -52,7 +55,7 @@ function c1184051.ofilter2(c) ...@@ -52,7 +55,7 @@ function c1184051.ofilter2(c)
return c:IsSetCard(0x3e12) and c:IsType(TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0x3e12) and c:IsType(TYPE_TRAP) and c:IsAbleToHand()
end end
function c1184051.op2(e,tp,eg,ep,ev,re,r,rp) function c1184051.op2(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_GRAVE,0,nil) local sg=Duel.GetMatchingGroup(c1184051.tfilter2,tp,LOCATION_GRAVE,0,nil)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)>0 then if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=Duel.SelectMatchingCard(tp,c1184051.ofilter2,tp,LOCATION_DECK,0,1,1,nil) local sg=Duel.SelectMatchingCard(tp,c1184051.ofilter2,tp,LOCATION_DECK,0,1,1,nil)
......
...@@ -45,10 +45,10 @@ function cm.initial_effect(c) ...@@ -45,10 +45,10 @@ function cm.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function cm.stfilter1(c,tc) function cm.stfilter1(c,tc)
return c:IsSynchroType(TYPE_TUNER) and c:IsPosition(POS_FACEUP) and c:IsCanBeSynchroMaterial(tc) return c:IsSynchroType(TYPE_TUNER) and c:IsSetCard(12038011) and c:IsPosition(POS_FACEUP) and c:IsCanBeSynchroMaterial(tc)
end end
function cm.stfilter2(c,tc) function cm.stfilter2(c,tc)
return c:IsSynchroType(TYPE_TUNER) and c:IsPosition(POS_FACEUP) and c:IsCanBeSynchroMaterial(tc) return not c:IsSynchroType(TYPE_TUNER) and c:IsPosition(POS_FACEUP) and c:IsCanBeSynchroMaterial(tc)
end end
function cm.stfilterg(g,tp,tc,lv,smat) function cm.stfilterg(g,tp,tc,lv,smat)
if smat then if smat then
......
...@@ -46,7 +46,7 @@ function cm.cost1(e,c,tp,st) ...@@ -46,7 +46,7 @@ function cm.cost1(e,c,tp,st)
end end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp) function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return rp==1-tp and bit.band(loc,LOCATION_MZONE)~=0 return rp==1-tp and bit.band(loc,LOCATION_ONFIELD)~=0
end end
function cm.spfilter(c,e,tp) function cm.spfilter(c,e,tp)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsRace(RACE_PSYCHO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsRace(RACE_PSYCHO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
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