Commit d354e9de authored by salix5's avatar salix5

fix ドラグニティ-ブラックスピア, ヒドゥン・ショット

parent 58207742
...@@ -13,14 +13,13 @@ function c13361027.initial_effect(c) ...@@ -13,14 +13,13 @@ function c13361027.initial_effect(c)
e1:SetOperation(c13361027.operation) e1:SetOperation(c13361027.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c13361027.cfilter(c,ft,tp) function c13361027.cfilter(c,tp)
return c:IsSetCard(0x29) and c:IsRace(RACE_DRAGON) return c:IsSetCard(0x29) and c:IsRace(RACE_DRAGON)
and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) and Duel.GetMZoneCount(tp,c)>0 and (c:IsControler(tp) or c:IsFaceup())
end end
function c13361027.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c13361027.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if chk==0 then return Duel.CheckReleaseGroup(tp,c13361027.cfilter,1,nil,tp) end
if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c13361027.cfilter,1,nil,ft,tp) end local rg=Duel.SelectReleaseGroup(tp,c13361027.cfilter,1,1,nil,tp)
local rg=Duel.SelectReleaseGroup(tp,c13361027.cfilter,1,1,nil,ft,tp)
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
end end
function c13361027.filter(c,e,sp) function c13361027.filter(c,e,sp)
......
...@@ -16,7 +16,7 @@ function c15609017.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -16,7 +16,7 @@ function c15609017.cost(e,tp,eg,ep,ev,re,r,rp,chk)
return true return true
end end
function c15609017.costfilter(c) function c15609017.costfilter(c)
return c:IsSetCard(0x2016) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x2016) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end end
function c15609017.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c15609017.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
......
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