Commit 3dfc4bb0 authored by Tachibana's avatar Tachibana

nmbd

parent fab34f4d
......@@ -28,10 +28,16 @@ end
function cm.thfilter(c)
return c:IsSetCard(0x5ccc) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function cm.nefilter(c)
return c:IsFaceup() and (c:IsLevelAbove(10) or c:IsRankAbove(10))
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(cm.thfilter,tp,LOCATION_DECK,0,nil)
if chk==0 then return g:GetClassCount(Card.GetCode)>=2 end
if Duel.IsExistingMatchingCard(cm.nefilter,tp,LOCATION_MZONE,0,1,nil) then
e:SetProperty(EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE)
end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,tp,LOCATION_DECK)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -29,9 +29,10 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
--indes
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE)
e4:SetTargetRange(LOCATION_MZONE,0)
e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e4:SetCondition(cm.econ)
e4:SetValue(aux.tgoval)
......
......@@ -60,10 +60,10 @@ function cm.fun(g,e,tp)
end
end
function cm.thfilter(c)
return c:IsAbleToHand() and c:IsSetCard(0x4552)
return c:IsAbleToHand() and c:IsSetCard(0x6552)
end
function cm.thop(e,tp)
rsof.SelectHint(tp,"th")
--rsof.SelectHint(tp,"th")
local tg=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if #tg>0 then
Duel.SendtoHand(tg,nil,REASON_EFFECT)
......
......@@ -34,7 +34,7 @@ function c33331557.tfilter2(c)
return c:IsCode(33331554) and not c:IsForbidden()
end
function c33331557.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c33331557.tfilter2,tp,LOCATION_DECK,0,1,nil) end
if chk==0 then return true end--Duel.IsExistingMatchingCard(c33331557.tfilter2,tp,LOCATION_DECK,0,1,nil) end
end
function c33331557.op2(e,tp,eg,ep,ev,re,r,rp)
tp=e:GetHandlerPlayer()
......
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