Commit 53808290 authored by 未闻皂名's avatar 未闻皂名

2022/10/18 新增:亚龙地狱,更新翻译

parent 44c58fee
Pipeline #17293 passed with stages
in 4 minutes and 49 seconds
No preview for this file type
local m=120231029
local list={120231024,120231026}
local cm=_G["c"..m]
cm.name="电子入"
cm.name="电子入"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Activate
......
local m=120231055
local cm=_G["c"..m]
cm.name="兽机界王 冠位狐"
cm.name="兽机界王 滑翔机狐"
function cm.initial_effect(c)
--Destroy
local e1=Effect.CreateEffect(c)
......
local m=120231068
local cm=_G["c"..m]
cm.name="亚龙地狱"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e2)
end
--Activate
function cm.confilter(c,tp)
return c:GetSummonPlayer()==tp and c:IsFaceup() and c:IsLevelBelow(8)
end
function cm.costfilter(c)
return c:IsFaceup() and c:IsLevelAbove(5) and c:IsAbleToGraveAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.confilter,1,nil,1-tp)
end
cm.cost=RD.CostSendMZoneToGrave(cm.costfilter,1,1,false)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local dg=g:GetMaxGroup(Card.GetLevel)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,dg,dg:GetCount(),0,0)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local dg=g:GetMaxGroup(Card.GetLevel)
if dg:GetCount()>0 then
Duel.Destroy(dg,REASON_EFFECT)
end
end
\ No newline at end of file
local m=120231070
local cm=_G["c"..m]
cm.name="力量焊接"
cm.name="力量结合"
function cm.initial_effect(c)
--Activate
local e1=RD.CreateFusionEffect(c,nil,cm.spfilter,nil,0,0,nil,cm.operation)
......
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