Files
UniverseDeck/lua/c56158664.lua

20 lines
577 B
Lua
Raw Normal View History

2021-12-11 16:21:01 +01:00
--Universe Comet
2021-12-10 20:22:50 +01:00
local s,id=GetID()
function s.initial_effect(c)
--pendulum summon
Pendulum.AddProcedure(c)
2022-01-11 15:56:42 +01:00
--special summon if no monster on field
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(s.spcon)
c:RegisterEffect(e1)
end
--sp function
function s.spcon(e,c)
if c==nil then return true end
return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0,nil)==0
and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
2021-12-10 20:22:50 +01:00
end