Commit b8688adc authored by Tachibana's avatar Tachibana

nmbd

parent 78a79a4f
...@@ -44,7 +44,7 @@ function c33331554.tfilter2(c) ...@@ -44,7 +44,7 @@ function c33331554.tfilter2(c)
and c:IsSSetable() and c:IsSSetable()
end end
function c33331554.tg2(e,tp,eg,ep,ev,re,r,rp,chk) function c33331554.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c33331554.tfilter2,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingMatchingCard(c33331554.tfilter2,tp,LOCATION_DECK,0,1,nil) end
end end
function c33331554.ofilter2(c,e,tp,zone) function c33331554.ofilter2(c,e,tp,zone)
return c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) return c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone)
......
...@@ -61,7 +61,7 @@ function c33331559.con2(e) ...@@ -61,7 +61,7 @@ function c33331559.con2(e)
end end
-- --
function c33331559.tfilter3(c) function c33331559.tfilter3(c)
return c:IsAbleToDeck() and c:IsSetCard(0x55e) return c:IsAbleToDeck() and c:IsSetCard(0x55e) and c:IsFaceup()
end end
function c33331559.tg3(e,tp,eg,ep,ev,re,r,rp,chk) function c33331559.tg3(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -79,7 +79,7 @@ function c33331559.op3(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +79,7 @@ function c33331559.op3(e,tp,eg,ep,ev,re,r,rp)
if sg:GetCount()>2 then if sg:GetCount()>2 then
sg:AddCard(c) sg:AddCard(c)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)<1 then return end if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)<1 then return end
Duel.ShuffleDeck() Duel.ShuffleDeck(tp)
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
end end
end end
......
...@@ -95,7 +95,7 @@ function cm.setfilter(c) ...@@ -95,7 +95,7 @@ function cm.setfilter(c)
--return (c:IsType(TYPE_SPELL) or c:IsType(TYPE_TRAP)) and c:IsSetCard(0x55e) --return (c:IsType(TYPE_SPELL) or c:IsType(TYPE_TRAP)) and c:IsSetCard(0x55e)
end end
function cm.tftg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_DECK,0,1,nil) end
end end
function cm.tfop(e,tp) function cm.tfop(e,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
......
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