Commit 39de9e6f authored by 未闻皂名's avatar 未闻皂名

2022/10/8 新增:撒塔尼乌斯的宝珠,bug修复

parent fecbe39f
No preview for this file type
......@@ -25,7 +25,7 @@ function cm.initial_effect(c)
end
--Summon
function cm.matfilter(c,tp)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_DARK)
return c:IsAttribute(ATTRIBUTE_DARK)
end
function cm.sumcon(e,c,minc)
if c==nil then return true end
......
......@@ -32,6 +32,7 @@ function cm.indval(e,re,rp)
if e==nil then
return true,0,0
end
local tp=e:GetHandlerPlayer()
local tc=re:GetHandler()
return rp==1-tp and re:IsActiveType(TYPE_MONSTER) and tc:IsLevelBelow(8)
end
\ No newline at end of file
local m=120231064
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:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.confilter(c)
return c:IsFaceup() and c:IsLevel(6)
end
function cm.costfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.confilter,tp,LOCATION_MZONE,0,1,nil)
end
cm.cost=RD.CostSendHandToGrave(cm.costfilter,1,1)
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