Commit cdbcc3f2 authored by POLYMER's avatar POLYMER

fix

parent c99139e0
......@@ -68,15 +68,16 @@ function cm.initial_effect(c)
qe:SetRange(LOCATION_HAND)
local con = e0:GetCondition()
qe:SetCondition(function(e, tp, eg, ep, ev, re, r, rp)
return Duel.IsExistingMatchingCard(nil, tp, LOCATION_MZONE, 0, 1, nil) and
return not Duel.IsExistingMatchingCard(nil, tp, LOCATION_MZONE, 0, 1, nil) and
(not con or con(e, tp, eg, ep, ev, re, r, rp))
end)
-- 修复未定义的tc变量
cm.global_jc[c] = cm.global_jc[c] or {}
cm.global_jc[c][#cm.global_jc[c] + 1] = qe
c:RegisterEffect(qe)
e0:SetCondition(function(e, tp, eg, ep, ev, re, r, rp)
return not Duel.IsExistingMatchingCard(nil, tp, LOCATION_MZONE, 0, 1, nil) and
return Duel.IsExistingMatchingCard(nil, tp, LOCATION_MZONE, 0, 1, nil) and
(not con or con(e, tp, eg, ep, ev, re, r, rp))
end)
......@@ -122,7 +123,7 @@ function cm.triggertg(e, tp, eg, ep, ev, re, r, rp, chk)
-- 仅在装备怪兽攻击力为0时才会触发后续操作,所以这里添加条件判断
local c = e:GetHandler()
local ec = c:GetEquipTarget()
if ec and (ec:GetAttack() - 748) == 0 then
if ec and (ec:GetAttack() - 444) == 0 then
Duel.SetOperationInfo(0, CATEGORY_TOHAND, nil, 1, tp, LOCATION_DECK)
Duel.SetOperationInfo(0, CATEGORY_RELEASE, ec, 1, tp, LOCATION_MZONE)
Duel.SetOperationInfo(0, CATEGORY_DESTROY, c, 1, 0, 0)
......@@ -159,9 +160,9 @@ function cm.triggerop(e, tp, eg, ep, ev, re, r, rp)
Duel.Destroy(c, REASON_EFFECT)
end
end
end
end
function cm.filter(c)
return c:IsType(TYPE_EQUIP) and not c:IsCode(m) and c:IsAbleToHand()
end
......
......@@ -27,9 +27,10 @@ end
-- 让这张卡从手卡·墓地回到卡组才能发动,自己的卡组·墓地·除外状态的1张「堕福」永续魔法·永续陷阱卡在自己场上盖放
function s.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() end
Duel.SendtoDeck(c,nil,SEQ_DECKSHUFFLE,REASON_COST)
local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() end
Duel.ConfirmCards(1-tp,c)
Duel.SendtoDeck(c,nil,SEQ_DECKSHUFFLE,REASON_COST)
end
function s.pfilter(c,tp)
......
......@@ -30,9 +30,10 @@ end
-- 自己·对方回合,让这张卡从手卡·墓地回到卡组才能发动,从手卡·卡组选「堕福的选灯 命途照」以外的1张「堕福」卡送去墓地或在自己的超量怪兽下面重叠作为超量素材
function s.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() end
Duel.SendtoDeck(c,nil,SEQ_DECKSHUFFLE,REASON_COST)
local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() end
Duel.ConfirmCards(1-tp,c)
Duel.SendtoDeck(c,nil,SEQ_DECKSHUFFLE,REASON_COST)
end
function s.tgfilter(c,e,tp)
......
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