Commit d4a012f5 authored by Tachibana's avatar Tachibana

eme

parent 0ad6cf69
Pipeline #8413 passed with stages
in 23 minutes and 50 seconds
...@@ -25,10 +25,10 @@ function cm.initial_effect(c) ...@@ -25,10 +25,10 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.eqcheck(c,tp,ec) function cm.eqcheck(c,tp,ec)
return not c:IsForbidden() and c:CheckUniqueOnField(tp) and rk.check(c,"DAIOU") and c:IsLevel(ec:GetLevel()*2) return not c:IsForbidden() and c:CheckUniqueOnField(tp) and rk.check(c,"DAIOU") and c:IsLevel(ec:GetLevel()*2) and c:IsType(TYPE_MONSTER)
end end
function cm.tgfilter(c,tp,eg) function cm.tgfilter(c,tp,eg)
return eg:IsContains(c) and Duel.IsExistingMatchingCard(cm.eqcheck,tp,LOCATION_DECK,0,1,nil,tp,c) return eg:IsContains(c) and Duel.IsExistingMatchingCard(cm.eqcheck,tp,LOCATION_DECK,0,1,nil,tp,c) and c:IsLevelAbove(1)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -17,16 +17,15 @@ function c75124603.initial_effect(c) ...@@ -17,16 +17,15 @@ function c75124603.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--spsummon --spsummon
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(75124603,0))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_SUMMON_SUCCESS) e3:SetCode(EVENT_SUMMON_SUCCESS)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetRange(LOCATION_MZONE)
e3:SetTarget(c75124603.sptg) e3:SetTarget(c75124603.sptg)
e3:SetOperation(c75124603.spop) e3:SetOperation(c75124603.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=e3:Clone() local e4=e3:Clone()
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e4:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--indes --indes
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
...@@ -38,20 +37,20 @@ function c75124603.initial_effect(c) ...@@ -38,20 +37,20 @@ function c75124603.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c75124603.spfilter(c,e,tp) function c75124603.spfilter(c,e,tp)
return (not c:IsType(TYPE_TUNER)) and c:IsSetCard(0x3276) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLevelBelow(5) return c:IsSetCard(0x3276) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLevelBelow(5)
end end
function c75124603.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c75124603.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_DECK+LOCATION_GRAVE) and c75124603.spfilter(chkc,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c75124603.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end
and Duel.IsExistingTarget(c75124603.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c75124603.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c75124603.spop(e,tp,eg,ep,ev,re,r,rp) function c75124603.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
if tc:IsRelateToEffect(e) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) local g=Duel.SelectMatchingCard(tp,c75124603.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end end
end end
function c75124603.filter(c,e,tp) function c75124603.filter(c,e,tp)
......
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