Commit c61b83a1 authored by mercury233's avatar mercury233

fix

parent 2c287647
--ホワイトローズ・ドラゴン
--White Rose Dragon
--Script by nekrozar
function c100200055.initial_effect(c)
function c100200155.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(100200055,0))
e1:SetDescription(aux.Stringid(100200155,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,100200055)
e1:SetCondition(c100200055.spcon1)
e1:SetTarget(c100200055.sptg1)
e1:SetOperation(c100200055.spop1)
e1:SetCountLimit(1,100200155)
e1:SetCondition(c100200155.spcon1)
e1:SetTarget(c100200155.sptg1)
e1:SetOperation(c100200155.spop1)
c:RegisterEffect(e1)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100200055,1))
e2:SetDescription(aux.Stringid(100200155,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetTarget(c100200055.sptg2)
e2:SetOperation(c100200055.spop2)
e2:SetTarget(c100200155.sptg2)
e2:SetOperation(c100200155.spop2)
c:RegisterEffect(e2)
--to grave
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(100200055,2))
e3:SetDescription(aux.Stringid(100200155,2))
e3:SetCategory(CATEGORY_TOGRAVE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_BE_MATERIAL)
e3:SetCountLimit(1,100200055)
e3:SetCondition(c100200055.tgcon)
e3:SetTarget(c100200055.tgtg)
e3:SetOperation(c100200055.tgop)
e3:SetCountLimit(1,100200155)
e3:SetCondition(c100200155.tgcon)
e3:SetTarget(c100200155.tgtg)
e3:SetOperation(c100200155.tgop)
c:RegisterEffect(e3)
end
function c100200055.cfilter(c)
function c100200155.cfilter(c)
return c:IsFaceup() and c:IsRace(RACE_DRAGON+RACE_PLANT) and c:IsType(TYPE_TUNER)
end
function c100200055.spcon1(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c100200055.cfilter,tp,LOCATION_MZONE,0,1,nil)
function c100200155.spcon1(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c100200155.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c100200055.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
function c100200155.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c100200055.spop1(e,tp,eg,ep,ev,re,r,rp)
function c100200155.spop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
function c100200055.spfilter(c,e,tp)
return c:IsSetCard(0x223) and not c:IsCode(100200055) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
function c100200155.spfilter(c,e,tp)
return c:IsSetCard(0x223) and not c:IsCode(100200155) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c100200055.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
function c100200155.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c100200055.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(c100200155.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end
function c100200055.spop2(e,tp,eg,ep,ev,re,r,rp)
function c100200155.spop2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c100200055.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c100200155.spfilter),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
end
function c100200055.tgcon(e,tp,eg,ep,ev,re,r,rp)
function c100200155.tgcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and r==REASON_SYNCHRO
end
function c100200055.tgfilter(c)
function c100200155.tgfilter(c)
return c:IsLevelAbove(4) and c:IsRace(RACE_PLANT) and c:IsAbleToGrave()
end
function c100200055.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c100200055.tgfilter,tp,LOCATION_DECK,0,1,nil) end
function c100200155.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c100200155.tgfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end
function c100200055.tgop(e,tp,eg,ep,ev,re,r,rp)
function c100200155.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c100200055.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c100200155.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
end
......
......@@ -45,7 +45,7 @@ function c101007021.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c101007021.tgfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
and Duel.IsExistingMatchingCard(c101007021.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c101007021.tgfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SelectTarget(tp,c101007021.tgfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end
function c101007021.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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