Commit 43acbaf9 authored by 未闻皂名's avatar 未闻皂名

2023/1/11 新增:焰魔的强袭,更新翻译

parent ef19d555
No preview for this file type
No preview for this file type
local m=120189003
local cm=_G["c"..m]
cm.name="天吉他手"
cm.name="天吉他手"
function cm.initial_effect(c)
--Atk Up
local e1=Effect.CreateEffect(c)
......
local m=120217007
local cm=_G["c"..m]
cm.name="暗冥探力者"
cm.name="暗冥预探者"
function cm.initial_effect(c)
--Discard Deck
local e1=Effect.CreateEffect(c)
......
local m=120217025
local list={120120028,120217042}
local cm=_G["c"..m]
cm.name="彩光超公主奥米茄"
cm.name="彩光超 欧米伽公主"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Fusion Material
......
......@@ -17,7 +17,7 @@ end
--Draw
cm.trival=RD.ValueDoubleTributeAtkDef(nil,200)
function cm.costfilter(c)
return c:IsRace(RACE_BEAST+RACE_WARRIOR) and c:IsAbleToGraveAsCost()
return c:IsRace(RACE_BEAST+RACE_WARRIOR) and RD.IsDefense(c,200) and c:IsAbleToGraveAsCost()
end
cm.cost=RD.CostSendHandToGrave(cm.costfilter,1,1,nil,nil,function(g)
return g:GetFirst():GetType()
......
local m=120235051
local cm=_G["c"..m]
cm.name="焰魔的强袭"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.costfilter(c)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsType(TYPE_MAXIMUM) and c:IsAbleToGraveAsCost()
end
function cm.atkfilter(c)
return c:IsFaceup() and c:IsType(TYPE_MAXIMUM)
end
cm.cost=RD.CostSendHandToGrave(cm.costfilter,3,3)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_MZONE,nil)
if RD.SendToDeckAndExists(g) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),cm.atkfilter,tp,LOCATION_MZONE,0,1,1,nil,function(sg)
Duel.BreakEffect()
RD.AttachAtkDef(e,sg:GetFirst(),1000,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
end
end
\ No newline at end of file
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