You need to sign in or sign up before continuing.
Commit b957d139 authored by 未闻皂名's avatar 未闻皂名

2026/2/4 新增:爱之兔

parent c9316b67
Pipeline #42842 passed with stages
in 6 minutes and 59 seconds
No preview for this file type
...@@ -283,6 +283,9 @@ function RushDuel.ExecuteRitualSummon(e, tp, type, list, chkf, gc, mat_move, can ...@@ -283,6 +283,9 @@ function RushDuel.ExecuteRitualSummon(e, tp, type, list, chkf, gc, mat_move, can
data = RushDuel.SelectOption(tp, table.unpack(options)) data = RushDuel.SelectOption(tp, table.unpack(options))
end end
local ce, mg = data[1], data[2] local ce, mg = data[1], data[2]
if RushDuel.RitualExtraMaterialFilter then
mg = mg:Filter(RushDuel.RitualExtraMaterialFilter, nil, e, tp, rc, mg)
end
RushDuel.CurrentRitualEffect = e RushDuel.CurrentRitualEffect = e
local mat = RushDuel.SelectRitualMaterial(tp, rc, type, mg, gc) local mat = RushDuel.SelectRitualMaterial(tp, rc, type, mg, gc)
RushDuel.CurrentRitualEffect = nil RushDuel.CurrentRitualEffect = nil
......
local cm,m=GetID()
cm.name="爱之兔"
function cm.initial_effect(c)
--Draw
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DRAW+CATEGORY_TOGRAVE+CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Draw
function cm.costfilter(c,e,tp)
return not c:IsPublic() and c:IsRace(RACE_FAIRY) and c:IsAttack(0)
end
function cm.exfilter(c)
return c:IsFaceup() and c:GetBaseAttack()==0 and c:IsAttribute(ATTRIBUTE_DARK)
and c:IsRace(RACE_FAIRY)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>9
end
cm.cost=RD.CostShowHand(cm.costfilter,1,1)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
RD.TargetDraw(tp,1)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if RD.Draw()~=0 then
RD.SelectAndDoAction(HINTMSG_TOGRAVE,Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,1,nil,function(g)
Duel.BreakEffect()
if RD.SendToGraveAndExists(g)
and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil,function(g)
RD.AttachAtkDef(e,g:GetFirst(),-1000,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
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