Commit 6592e600 authored by TanakaKotoha's avatar TanakaKotoha

wdnmd

parent ddfb6688
......@@ -43,7 +43,7 @@ function cm.spcon(e,c)
return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0)>6
end
function cm.costfilter(c)
return not c:IsPublic() and c:IsSetCard(0xcfac)
return not c:IsPublic() and c:IsSetCard(0xcfac) and c:IsType(TYPE_MONSTER)
end
function cm.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -68,8 +68,9 @@ function cm.val(e,re,dam,r,rp,rc)
return damg
end
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetCurrentChain()
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0xcfac)
return ct and ct>0 and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0xcfac)
end
function cm.spfilter(c,e,tp)
return c:IsSetCard(0xcfac) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
......
......@@ -47,6 +47,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_GRAVE)
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local tc=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil):GetFirst()
if not tc then return end
......
......@@ -33,7 +33,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=(not c:IsPublic())
local b2=c:IsDiscardable(REASON_COST)
if chk==0 then return b1 or b2 end
if b1 and b2 then op=Duel.SelectOption(tp,aux.Stringid(m,1),aux.Stringid(m,2))
if b1 and b2 then op=Duel.SelectOption(tp,aux.Stringid(12080010,1),aux.Stringid(12080010,2))
elseif b1 then op=0
elseif b2 then op=1
end
......
......@@ -24,14 +24,14 @@ function syuy.filter(c,e,sp)
end
function syuy.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetMatchingGroupCount(cm.cfilter,tp,LOCATION_MZONE,0,nil)==0 end
and Duel.IsExistingMatchingCard(syuy.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetMatchingGroupCount(syuy.cfilter,tp,LOCATION_MZONE,0,nil)==0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end
function syuy.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if Duel.GetMatchingGroupCount(cm.cfilter,tp,LOCATION_MZONE,0,nil)>0 then return end
if Duel.GetMatchingGroupCount(syuy.cfilter,tp,LOCATION_MZONE,0,nil)>0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.filter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(syuy.filter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
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