Commit 7b14ee11 authored by Tianchenglipu's avatar Tianchenglipu

Update c22617205.lua

parent b1b52744
--覚星輝士-セフィラビュート --覚星輝士-セフィラビュート
function c22617205.initial_effect(c) function c22617205.initial_effect(c)
--pendulum summon --pendulum summon
aux.AddPendulumProcedure(c) aux.EnablePendulumAttribute(c)
--Activate --splimit
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_PZONE)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE)
e1:SetTargetRange(1,0)
e1:SetTarget(c22617205.splimit)
e1:SetCondition(aux.nfbdncon)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--splimit --destroy
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetCategory(CATEGORY_DESTROY)
e2:SetRange(LOCATION_PZONE) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE) e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetTargetRange(1,0) e2:SetCountLimit(1,22617205)
e2:SetTarget(c22617205.splimit) e2:SetTarget(c22617205.target)
e2:SetCondition(aux.nfbdncon) e2:SetOperation(c22617205.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--destroy local e3=e2:Clone()
local e3=Effect.CreateEffect(c) e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_SUMMON_SUCCESS)
e3:SetCountLimit(1,22617205)
e3:SetTarget(c22617205.target)
e3:SetOperation(c22617205.operation)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=e3:Clone() local e4=e2:Clone()
e4:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e4:SetCode(EVENT_SPSUMMON_SUCCESS)
e4:SetCondition(c22617205.condition)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local e5=e3:Clone()
e5:SetCode(EVENT_SPSUMMON_SUCCESS)
e5:SetCondition(c22617205.condition)
c:RegisterEffect(e5)
end end
function c22617205.splimit(e,c,sump,sumtype,sumpos,targetp) function c22617205.splimit(e,c,sump,sumtype,sumpos,targetp)
if c:IsSetCard(0x9c) or c:IsSetCard(0xc4) then return false end if c:IsSetCard(0x9c) or c:IsSetCard(0xc4) then return false 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