Commit 80c6cc37 authored by Tachibana's avatar Tachibana

得得得得得

parent 3a8f1c66
......@@ -28,8 +28,8 @@ function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,2))
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,m+100)
e1:SetTarget(cm.target)
......
......@@ -54,7 +54,7 @@ function cm.counterfilter(c)
return c:IsSetCard(0x6fa8)
end
function cm.filter(c,e,tp)
return c:IsCode(12050000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsCode(12064001) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
......@@ -9,8 +9,7 @@ function c33200658.initial_effect(c)
e1:SetCategory(CATEGORY_CONTROL)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,33200658)
e1:SetCondition(c33200658.ccon)
e1:SetTarget(c33200658.ctg)
......
......@@ -72,7 +72,7 @@ function c64831008.filter(tc,c,tp)
local res=Duel.IsExistingMatchingCard(c64831008.synfilter,tp,LOCATION_EXTRA,0,1,nil,mg)
c:ResetFlagEffect(64831008)
e1:Reset()
return res and Duel.GetLocationCountFromEx(tp,tp,tc)>0
return res and Duel.GetMZoneCount(tp,mg)>0
end
function c64831008.synfilter(c,mg)
return c:IsSynchroSummonable(nil,mg)
......@@ -85,14 +85,14 @@ function c64831008.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if c64831008.filter(mc,e:GetHandler(),tp) then check=1 end
mc=mg:GetNext()
end
if chk==0 then return Duel.GetLocationCountFromEx(tp,tp,e:GetHandler())>0 and check==1 end
if chk==0 then return check==1 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function c64831008.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local tc=Duel.SelectMatchingCard(tp,c64831008.filter,tp,LOCATION_MZONE,0,1,1,nil,e:GetHandler(),tp):GetFirst()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) then
if c:IsRelateToEffect(e) then
c:RegisterFlagEffect(64831008,0,0,1)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
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