Commit ffc6c26a authored by 银龙幽影's avatar 银龙幽影 Committed by mercury233

update new card (#1)

parent 9689332e
#created by ...
#main
100408016
100408018
100408021
100408100
100408029
100408030
100408031
100408032
100408033
100408034
100408035
100408036
100408101
100408038
100408039
100306000
100306001
100306002
100306022
100306030
100318003
100318004
100318021
100200143
100226002
100408014
100408015
100408017
100408019
100408020
100408022
100408023
100408024
100408026
#extra
100408027
100408028
100318042
100408007
100226001
!side
100241001
#created by ...
#main
100408016
100408018
100408021
100408100
100408029
100408030
100408031
100408032
100408033
100408034
100408035
100408036
100408101
100408038
100408039
100306000
100306001
100306002
100306022
100306030
100318003
100318004
100318021
100200143
100226002
100408014
100408015
100408017
100408019
100408020
100408022
100408023
100408024
100408026
#extra
100408027
100408028
100318042
100408007
100226001
!side
100241001
100241004
picn/100241001.jpg

63.7 KB | W: | H:

picn/100241001.jpg

62.7 KB | W: | H:

picn/100241001.jpg
picn/100241001.jpg
picn/100241001.jpg
picn/100241001.jpg
  • 2-up
  • Swipe
  • Onion skin
pics/100241001.jpg

21.6 KB | W: | H:

pics/100241001.jpg

21.5 KB | W: | H:

pics/100241001.jpg
pics/100241001.jpg
pics/100241001.jpg
pics/100241001.jpg
  • 2-up
  • Swipe
  • Onion skin
--Dragon Revival Rhapsody
--Scripted by Eerie Code
function c100241004.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,100241004+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c100241004.condition)
e1:SetTarget(c100241004.target)
e1:SetOperation(c100241004.activate)
c:RegisterEffect(e1)
end
function c100241004.cfilter(c)
return c:IsFaceup() and c:IsRace(RACE_SPELLCASTER)
end
function c100241004.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c100241004.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c100241004.filter(c,e,tp)
return c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c100241004.nfilter(c,e,tp)
return c100241004.filter(c,e,tp) and c:IsType(TYPE_NORMAL)
end
function c100241004.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
local ct=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return ct>0 and Duel.IsExistingTarget(c100241004.nfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g1=Duel.SelectTarget(tp,c100241004.nfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
if ct>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.IsExistingTarget(c100241004.filter,tp,LOCATION_GRAVE,0,1,g1,e,tp)
and Duel.SelectYesNo(tp,aux.Stringid(100241004,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g2=Duel.SelectTarget(tp,c100241004.filter,tp,LOCATION_GRAVE,0,1,1,g1,e,tp)
g1:Merge(g2)
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g1,g1:GetCount(),0,0)
end
function c100241004.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CHANGE_DAMAGE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1)
e1:SetValue(0)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EFFECT_NO_EFFECT_DAMAGE)
e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp)
local ct=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ct<1 then return end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()==0 then return end
if g:GetCount()>ct or (g:GetCount()>1 and Duel.IsPlayerAffectedByEffect(tp,59822133)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
g=g:Select(tp,1,1,nil)
end
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
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