Commit 1ef1cf63 authored by 未闻皂名's avatar 未闻皂名

2020/6/2 新增:神风剑;KP02的卡修改至正式卡密

parent c391ce95
No preview for this file type
local m=120121009
local m=120130018
local cm=_G["c"..m]
cm.name="重陨击流星"
function cm.initial_effect(c)
......
local m=120121008
local m=120130021
local cm=_G["c"..m]
cm.name="大惊刺拳龙"
function cm.initial_effect(c)
......
local m=120121006
local list={120121005}
local m=120130040
local list={120130000}
local cm=_G["c"..m]
cm.name="千把刀"
function cm.initial_effect(c)
......
local m=120121007
local list={120121005}
local m=120130041
local list={120130000}
local cm=_G["c"..m]
cm.name="黑·魔·导"
function cm.initial_effect(c)
......
local m=120130042
local cm=_G["c"..m]
cm.name="神风剑"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.desfilter(c,tp)
if c:IsControler(tp) then return c:IsFaceup() and c:IsType(TYPE_NORMAL)
else return c:IsFaceup() and c:IsLevelBelow(8) end
end
function cm.check(g,tp)
return g:FilterCount(Card.IsControler,nil,tp)==2
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(cm.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if chk==0 then return g:CheckSubGroup(cm.check,3,3,tp) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,3,0,0)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if not g:CheckSubGroup(cm.check,3,3,tp) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sg=g:SelectSubGroup(tp,cm.check,false,3,3,tp)
Duel.HintSelection(sg)
Duel.Destroy(sg,REASON_EFFECT)
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