Commit 89c7e042 authored by 未闻皂名's avatar 未闻皂名

2023/9/7 新增:青眼新卡,更新翻译

parent 1d62fb39
Pipeline #23410 passed with stages
in 7 minutes and 32 seconds
No preview for this file type
...@@ -312,6 +312,24 @@ function RushDuel.RevealDeckTopAndCanSelect(player, count, desc, hint, filter, m ...@@ -312,6 +312,24 @@ function RushDuel.RevealDeckTopAndCanSelect(player, count, desc, hint, filter, m
return g, g return g, g
end end
end end
-- 操作: 翻开卡组并可以选择卡 (子卡片组)
function RushDuel.RevealDeckTopAndCanSelectGroup(player, count, desc, hint, filter, check, min, max, ...)
Duel.ConfirmDecktop(player, count)
local g = Duel.GetDecktopGroup(player, count)
if g:GetCount() > 0 then
local mg=g:Filter(filter,nil)
if mg:CheckSubGroup(check, min, max, ...) and Duel.SelectYesNo(player, desc) then
Duel.Hint(HINT_SELECTMSG, player, hint)
local sg = mg:SelectSubGroup(player, check, false, min, max, ...)
g:Sub(sg)
return sg, g
else
return Group.CreateGroup(), g
end
else
return g, g
end
end
-- 可选操作: 抽卡 -- 可选操作: 抽卡
function RushDuel.CanDraw(desc, player, count, break_effect) function RushDuel.CanDraw(desc, player, count, break_effect)
......
local m=120246036
local cm=_G["c"..m]
cm.name="THE☆防御"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.costfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeckOrExtraAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp) and Duel.GetAttackTarget()==nil
end
cm.cost=RD.CostSendGraveToDeck(cm.costfilter,3,3)
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateAttack()
end
\ No newline at end of file
local m=120252005
local list={120252027}
local cm=_G["c"..m]
cm.name="龙之支配者-龙之绝对者-"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--To Hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,1))
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
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
--To Hand
function cm.filter(c)
return (c:IsCode(list[1]) or (c:IsLevel(8) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_DRAGON)))
and c:IsAbleToHand()
end
function cm.check(g)
return g:GetClassCount(Card.GetType)==g:GetCount()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return RD.IsSummonTurn(c) or RD.IsSpecialSummonTurn(c)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>3 end
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<4 then return end
local sg=RD.RevealDeckTopAndCanSelectGroup(tp,4,aux.Stringid(m,1),HINTMSG_ATOHAND,cm.filter,cm.check,1,2)
if sg:GetCount()>0 then
RD.SendToHandAndExists(sg,1-tp)
Duel.ShuffleHand(tp)
end
Duel.ShuffleDeck(tp)
end
\ No newline at end of file
local m=120252006 local m=120252006
local list={120238013,120252028} local list={120238013,120252028}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="传说的节点" cm.name="传说的交点龙"
function cm.initial_effect(c) function cm.initial_effect(c)
RD.AddCodeList(c,list) RD.AddCodeList(c,list)
--Discard Deck --Discard Deck
......
local m=120252027
local cm=_G["c"..m]
cm.name="究极的青眼传说"
function cm.initial_effect(c)
--Activate
local e1=RD.CreateFusionEffect(c,cm.matfilter,cm.spfilter,nil,0,0,cm.matcheck,RD.FusionToGrave,nil,cm.operation)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
end
--Activate
cm.indval=RD.ValueEffectIndesType(0,TYPE_MONSTER+TYPE_SPELL+TYPE_TRAP)
function cm.matfilter(c)
return c:IsRace(RACE_DRAGON)
end
function cm.spfilter(c)
return c:IsLevelAbove(10) and c:IsRace(RACE_DRAGON)
end
function cm.matcheck(tp,sg,fc)
return sg:GetCount()<=3
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp,mat,fc)
RD.AttachEffectIndes(e,fc,cm.indval,aux.Stringid(m,1),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_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