Commit 0d529d42 authored by TanakaKotoha's avatar TanakaKotoha

iidx goooooooooooooooold

parent 92e350a4
......@@ -47,7 +47,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(33330080,0))
if not Duel.IsPlayerCanRemove(1-tp) and not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_CANNOT_MSET) and not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_CANNOT_SSET) then return end
local g=Duel.GetMatchingGroup(cm.tdfil,1-tp,LOCATION_ONFIELD,0,nil)
local gc=Duel.GetMatchingGroupCount(Card.IsFacedown,tp,LOCATION_REMOVED,0,nil)//10
local gc=Duel.GetMatchingGroupCount(Card.IsFacedown,tp,LOCATION_REMOVED,LOCATION_REMOVED,nil)//10
if #g>0 then
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_SET)
local sg=g:FilterSelect(1-tp,cm.tdfil,gc,gc,nil,1-tp,POS_FACEDOWN,REASON_RULE)
......
......@@ -18,7 +18,7 @@ function c33400114.tfilter(c,e,tp)
end
function c33400114.filter(c,e,tp)
return c:IsSetCard(0x3341) and c:IsAbleToGraveAsCost()
and Duel.IsExistingMatchingCard(c33400114.tfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp)
and Duel.IsExistingMatchingCard(c33400114.tfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp)
end
function c33400114.chkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3341)
......@@ -34,7 +34,6 @@ function c33400114.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function c33400114.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCountFromEx(tp)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c33400114.tfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
if sg:GetCount()>0 then
......
--醒觉-忆景
function c65050064.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,6,2,c65050064.ovfilter,aux.Stringid(65050064,0))
aux.AddXyzProcedure(c,nil,6,3,c65050064.ovfilter,aux.Stringid(65050064,0))
c:EnableReviveLimit()
--1
local e1=Effect.CreateEffect(c)
......@@ -65,7 +65,7 @@ function c65050064.tg1f(c)
return c:IsSetCard(0xada2) and c:IsType(TYPE_MONSTER)
end
function c65050064.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return c65050064.tg1f(chkc) and chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp)
if chkc then return c65050064.tg1f(chkc) and chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) end
if chk==0 then return Duel.IsExistingTarget(c65050064.tg1f,tp,LOCATION_GRAVE,0,1,nil) end
Duel.SelectTarget(tp,c65050064.tg1f,tp,LOCATION_GRAVE,0,1,1,nil)
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