Commit 2be6c875 authored by Grajade's avatar Grajade

Update c74561014.lua

parent 828c8466
Pipeline #15369 passed with stage
in 44 seconds
...@@ -26,6 +26,13 @@ function cCardno.initial_effect(c) ...@@ -26,6 +26,13 @@ function cCardno.initial_effect(c)
e2:SetTarget(cCardno.nirtg) e2:SetTarget(cCardno.nirtg)
e2:SetOperation(cCardno.nirop) e2:SetOperation(cCardno.nirop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetOperation(cCardno.spop)
c:RegisterEffect(e3)
end end
--Nirvana --Nirvana
function cCardno.nircost(e,tp,eg,ep,ev,re,r,rp,chk) function cCardno.nircost(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -112,3 +119,18 @@ end ...@@ -112,3 +119,18 @@ end
function cCardno.synlimit(e,c) function cCardno.synlimit(e,c)
if not c:IsSetCard(0x5208) then return true end if not c:IsSetCard(0x5208) then return true end
end end
--
function cCardno.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e3_1=Effect.CreateEffect(c)
e3_1:SetType(EFFECT_TYPE_FIELD)
e3_1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE)
e3_1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e3_1:SetReset(RESET_PHASE+PHASE_END)
e3_1:SetTargetRange(1,0)
e3_1:SetTarget(cCardno.splimit)
Duel.RegisterEffect(e3_1,tp)
end
function cCardno.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0x5208) and ( c:IsType(TYPE_SYNCHRO) or c:IsType(TYPE_XYZ) or c:IsType(TYPE_FUSION) )
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