Commit 1f2c93cb authored by TanakaKotoha's avatar TanakaKotoha

desuwa

parent 17796e9b
...@@ -63,7 +63,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -63,7 +63,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
end end
function cm.costfilter(c,e,tp,eg,ep,ev,re,r,rp) function cm.costfilter(c,e,tp,eg,ep,ev,re,r,rp)
return c:IsSetCard(0xfa1) and c:IsType(TYPE_MONSTER) and not c:IsType(TYPE_SYNCHRO) and c.destg(e,tp,eg,ep,ev,re,r,rp,0,nil) return c:IsSetCard(0xfa1) and c:IsType(TYPE_MONSTER) and not c:IsType(TYPE_SYNCHRO) and c.destg and c.destg(e,tp,eg,ep,ev,re,r,rp,0,nil)
end end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
...@@ -35,7 +35,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,7 +35,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
end end
function cm.costfilter(c,e,tp,eg,ep,ev,re,r,rp) function cm.costfilter(c,e,tp,eg,ep,ev,re,r,rp)
return c:IsSetCard(0xfa1) and c:IsType(TYPE_MONSTER) and not c:IsType(TYPE_SYNCHRO) and c.destg(e,tp,eg,ep,ev,re,r,rp,0,nil) return c:IsSetCard(0xfa1) and c:IsType(TYPE_MONSTER) and not c:IsType(TYPE_SYNCHRO) and c.destg and c.destg(e,tp,eg,ep,ev,re,r,rp,0,nil)
end end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
...@@ -81,6 +81,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,6 +81,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(c,tp,2,REASON_EFFECT) Duel.SendtoDeck(c,tp,2,REASON_EFFECT)
c:ReverseInDeck() c:ReverseInDeck()
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
......
...@@ -12,6 +12,7 @@ function cm.lvop(e,tp) ...@@ -12,6 +12,7 @@ function cm.lvop(e,tp)
rsop.SelectSolve(HINTMSG_SELF,tp,cm.lvfilter,tp,LOCATION_MZONE,0,1,1,nil,cm.lvfun,e) rsop.SelectSolve(HINTMSG_SELF,tp,cm.lvfilter,tp,LOCATION_MZONE,0,1,1,nil,cm.lvfun,e)
end end
function cm.lvfun(g,e) function cm.lvfun(g,e)
local tp=e:GetHandlerPlayer()
local c,tc=e:GetHandler(),g:GetFirst() local c,tc=e:GetHandler(),g:GetFirst()
rshint.Select(tp,HINGMSG_LVRANK) rshint.Select(tp,HINGMSG_LVRANK)
local lv=Duel.AnnounceLevel(tp,1,8) local lv=Duel.AnnounceLevel(tp,1,8)
......
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