Commit e1be831e authored by Tachibana's avatar Tachibana

ndyd

parent 069aa9da
......@@ -84,7 +84,7 @@ function cm.repfilter(c,tp)
end
function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return eg:IsExists(cm.repfilter,1,nil,tp) and Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end
if chk==0 then return eg:IsExists(cm.repfilter,1,nil,tp) and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end
if Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
local g=eg:Filter(cm.repfilter,nil,tp)
local ct=g:GetCount()
......
......@@ -78,7 +78,7 @@ function c33200261.efilter(e,te)
end
--e2
function c33200261.igfilter(c)
function c33200261.gifilter(c)
return c:IsFaceup() and c:IsCode(33200250)
end
function c33200261.igtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -30,7 +30,7 @@ function cm.con(e,tp)
return not Duel.IsExistingMatchingCard(f,tp,LOCATION_MZONE,0,1,nil)
end
function cm.cfilter(c,e,tp)
if not c:IsFaceup() then return false end
if not (c:IsCode(65010001) or (c:IsFaceup() and c:IsLocation(LOCATION_MZONE))) then return false end
if c:IsLocation(LOCATION_GRAVE) then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
else return true
end
......
......@@ -15,7 +15,7 @@ function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetRange(LOCATION_FZONE)
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e1:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_EFFECT))
e1:SetValue(-1000)
......@@ -80,6 +80,7 @@ end
function cm.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.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_HAND)
Duel.SetChainLimit(aux.FALSE)
end
......@@ -99,6 +100,7 @@ function cm.slcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,cm.slfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,cm.slfilter,1,1,nil)
Duel.Release(g,REASON_COST)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function cm.sltg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......@@ -119,6 +121,7 @@ function cm.remcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,cm.rmfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,cm.rmfilter,1,1,nil)
Duel.Release(g,REASON_COST)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function cm.remfilter(c)
return c:IsType(TYPE_EFFECT) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE))
......
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