New card pictures, new IDs, updated effects
This commit is contained in:
36
lua/c56158662.lua
Normal file
36
lua/c56158662.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
--Universe Synchron Dragon
|
||||
local s,id=GetID()
|
||||
function s.initial_effect(c)
|
||||
--pendulum summon
|
||||
Pendulum.AddProcedure(c,false)
|
||||
--synchro summon
|
||||
Synchro.AddProcedure(c,nil,1,1,Synchro.NonTuner(Card.IsSetCard,0x25E),1,99)
|
||||
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
|
||||
--s.pendulum_level = 4
|
||||
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
|
||||
end
|
||||
Reference in New Issue
Block a user