Commit 484b4270 authored by 未闻皂名's avatar 未闻皂名

2024/6/5 新增:双海潮流

parent 61b7cee1
Pipeline #27947 passed with stages
in 6 minutes and 13 seconds
No preview for this file type
local m=120264051
local cm=_G["c"..m]
cm.name="双海潮流"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.costfilter(c)
return c:IsLevelAbove(7) and c:IsRace(RACE_FISH+RACE_SEASERPENT) and c:IsAbleToDeckAsCost()
end
cm.cost=RD.CostSendHandToDeck(cm.costfilter,1,1,true)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
RD.TargetDraw(tp,2)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
RD.Draw()
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