2021-12-04 15:40:15 +01:00
|
|
|
--Universe Synchron Dragon
|
|
|
|
|
local s,id=GetID()
|
|
|
|
|
function s.initial_effect(c)
|
|
|
|
|
--pendulum summon
|
|
|
|
|
Pendulum.AddProcedure(c,false)
|
|
|
|
|
--synchro summon
|
2021-12-29 14:02:05 +01:00
|
|
|
Synchro.AddProcedure(c,nil,1,1,Synchro.NonTuner(Card.IsSetCard,0x25E),1,99)
|
2021-12-22 22:43:36 +01:00
|
|
|
c:EnableReviveLimit()
|
|
|
|
|
--monster effect
|
|
|
|
|
|
|
|
|
|
--place in pendulum zone
|
|
|
|
|
local e2=Effect.CreateEffect(c)
|
|
|
|
|
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
|
|
|
|
|
e2:SetCode(EVENT_DESTROYED)
|
|
|
|
|
e2:SetProperty(EFFECT_FLAG_DELAY)
|
|
|
|
|
e2:SetCondition(s.pencon)
|
|
|
|
|
e2:SetTarget(s.pentg)
|
|
|
|
|
e2:SetOperation(s.penop)
|
|
|
|
|
c:RegisterEffect(e2)
|
|
|
|
|
end
|
|
|
|
|
-- place in pendulum zone functions
|
|
|
|
|
function s.pencon(e,tp,eg,ep,ev,re,r,rp)
|
|
|
|
|
local c=e:GetHandler()
|
|
|
|
|
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsFaceup()
|
|
|
|
|
end
|
|
|
|
|
function s.pentg(e,tp,eg,ep,ev,re,r,rp,chk)
|
|
|
|
|
if chk==0 then return Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1) end
|
|
|
|
|
end
|
|
|
|
|
function s.penop(e,tp,eg,ep,ev,re,r,rp)
|
|
|
|
|
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
|
|
|
|
|
local c=e:GetHandler()
|
|
|
|
|
if c:IsRelateToEffect(e) then
|
|
|
|
|
Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
|
|
|
|
|
end
|
2021-12-04 15:40:15 +01:00
|
|
|
end
|