Commit 26ac6196 authored by 未闻皂名's avatar 未闻皂名

2022/7/29 新增:暗银河和炎族新卡,更新翻译

parent c52ce6b4
Pipeline #15031 passed with stages
in 4 minutes and 35 seconds
No preview for this file type
local m=120145041
local cm=_G["c"..m]
cm.name="海龙王 固兰盖诺斯"
cm.name="海龙王 硬鳞大鱼鳞鳄"
function cm.initial_effect(c)
--Damage
local e1=Effect.CreateEffect(c)
......
local m=120155051
local cm=_G["c"..m]
cm.name="三角生"
cm.name="三角生"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
local m=120208016
local list={120209001}
local cm=_G["c"..m]
cm.name="碟状幼体穿越侍"
cm.name="穿越侍·碟状幼体侍"
function cm.initial_effect(c)
aux.AddCodeList(c,list[1])
--Atk Up
......
local m=120223011
local cm=_G["c"..m]
cm.name="灯笼穿越侍"
cm.name="穿越侍·水母侍"
function cm.initial_effect(c)
--Atk Up
local e1=Effect.CreateEffect(c)
......
local m=120225020
local cm=_G["c"..m]
cm.name="固态硬盘鸭"
cm.name="SSD龙兽"
function cm.initial_effect(c)
--Special Summon
local e1=Effect.CreateEffect(c)
......
local m=120226013
local cm=_G["c"..m]
cm.name="业火之结界像"
function cm.initial_effect(c)
--Cannot Special Summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(1,1)
e1:SetTarget(cm.sumlimit)
c:RegisterEffect(e1)
end
--Cannot Special Summon
function cm.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:GetAttribute()~=ATTRIBUTE_FIRE
end
\ No newline at end of file
local m=120226018
local list={120226017}
local cm=_G["c"..m]
cm.name="灯之炎魔 乙醇灵"
function cm.initial_effect(c)
aux.AddCodeList(c,list[1])
--Special Summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Special Summon
function cm.spfilter(c,e,tp)
return c:IsCode(list[1]) and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP_DEFENSE)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<=1
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndSpecialSummon(aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP_DEFENCE)
end
\ No newline at end of file
local m=120227007
local cm=_G["c"..m]
cm.name="虚空噬骸兵·百臂巨人"
cm.name="虚空噬骸兵·百臂巨人"
function cm.initial_effect(c)
--Damage
local e1=Effect.CreateEffect(c)
......
local m=120227015
local cm=_G["c"..m]
cm.name="虚空噬骸兵·球状体兵"
function cm.initial_effect(c)
--Extra Tribute
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Extra Tribute
cm.trival=RD.ValueDoubleTribute(ATTRIBUTE_DARK,RACE_GALAXY)
function cm.costfilter(c)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_GALAXY) and c:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsCanAttachDoubleTribute(e:GetHandler(),cm.trival)
end
cm.cost=RD.CostSendGraveToDeck(cm.costfilter,3,3)
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
RD.AttachDoubleTribute(e,c,cm.trival,aux.Stringid(m,1),RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
end
end
\ No newline at end of file
local m=120227019
local cm=_G["c"..m]
cm.name="流星幼虫"
function cm.initial_effect(c)
--Discard Deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DECKDES)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Discard Deck
function cm.filter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_GALAXY)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=Duel.GetMatchingGroupCount(cm.filter,tp,LOCATION_MZONE,0,nil)
if chk==0 then return ct>0 and Duel.IsPlayerCanDiscardDeck(tp,ct) end
RD.TargetDiscardDeck(tp,ct)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetMatchingGroupCount(cm.filter,tp,LOCATION_MZONE,0,nil)
RD.DiscardDeck(nil,ct)
end
\ No newline at end of file
......@@ -6,9 +6,8 @@ function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DOUBLE_TRIBUTE)
e1:SetValue(cm.condition)
e1:SetValue(cm.trival)
c:RegisterEffect(e1)
end
function cm.condition(e,c)
return c:IsAttribute(ATTRIBUTE_FIRE)
end
\ No newline at end of file
--Double Tribute
cm.trival=RD.ValueDoubleTribute(ATTRIBUTE_FIRE,nil)
\ 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