Ceremonial Gate
- Card ID:
120280031 - Format: Rush Duel
- Script:
Rush/Scripts/c120280031.lua
Stats
| Field | Value |
|---|---|
| Type | 0x82 |
| ATK | 0 |
| DEF | 0 |
| Level/Rank/Link | 0x0 |
| Race | 0x0 |
| Attribute | 0x0 |
| Category | 0x40000 |
Card Text
text
[REQUIREMENT]
None
[EFFECT]
Ritual Summon "Ceremonial Sorcerer" or "Ceremonial Knight" by sending face-up monsters from your field to the Graveyard whose total Levels equal 7 or more as material (you cannot use more monsters than necessary as material).Detected API Calls
Card.IsCodeCard.IsFaceupCard.IsOnFieldCard.RegisterEffectEffect.SetCategoryEffect.SetCodeEffect.SetTypeRushDuel.AddCodeListRushDuel.CreateRitualEffect
Script
lua
local cm,m=GetID()
local list={120280002,120280003}
cm.name="仪式法之门"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Activate
local e1=RD.CreateRitualEffect(c,RITUAL_ORIGINAL_LEVEL_GREATER,cm.matfilter,cm.spfilter)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
end
--Activate
function cm.matfilter(c)
return c:IsFaceup() and c:IsOnField()
end
function cm.spfilter(c)
return c:IsCode(list[1],list[2])
end