23 lines
614 B
Lua
23 lines
614 B
Lua
--Universe Light God
|
|
local s,id=GetID()
|
|
function s.initial_effect(c)
|
|
--pendulum summon
|
|
Pendulum.AddProcedure(c)
|
|
--cannot be target | copied from c77797992
|
|
local e2=Effect.CreateEffect(c)
|
|
e2:SetType(EFFECT_TYPE_FIELD)
|
|
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
|
|
e2:SetRange(LOCATION_MZONE)
|
|
e2:SetTargetRange(LOCATION_MZONE,0)
|
|
e2:SetTarget(s.targetd)
|
|
e2:SetValue(1)
|
|
c:RegisterEffect(e2)
|
|
local e3=e2:Clone()
|
|
e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
|
|
e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
|
|
e3:SetValue(1)
|
|
c:RegisterEffect(e3)
|
|
end
|
|
function s.targetd(e,c)
|
|
return c:IsFaceup() and c:IsSetCard(0x25e)
|
|
end |