Commit 02bce31e authored by VanillaSalt's avatar VanillaSalt

fix

parent 3094f590
--巨大戦艦 カバード・コア
function c15317640.initial_effect(c)
c:EnableCounterPermit(0x1f)
c:EnableCounterPermit(0x1f)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(15317640,0))
......
......@@ -62,7 +62,7 @@ function c61405855.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local bc=e:GetHandler():GetEquipTarget():GetBattleTarget()
Duel.SetTargetCard(bc)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,bc,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,bc,1,0,0)
end
function c61405855.desop(e,tp,eg,ep,ev,re,r,rp)
local bc=Duel.GetFirstTarget()
......
......@@ -41,17 +41,17 @@ function c90036274.initial_effect(c)
e3:SetOperation(c90036274.penop)
c:RegisterEffect(e3)
end
function c90036274.cfilter1(c)
return c:IsSetCard(0x2016) and c:IsType(TYPE_TUNER) and c:IsAbleToGraveAsCost() and c:IsLevelBelow(7)
function c90036274.cfilter1(c,tp)
return c:IsFaceup() and c:IsSetCard(0x2016) and c:IsType(TYPE_TUNER) and c:IsAbleToGraveAsCost() and c:IsLevelBelow(7)
and Duel.IsExistingMatchingCard(c90036274.cfilter2,tp,LOCATION_MZONE,0,1,c,c:GetLevel())
end
function c90036274.cfilter2(c,lv)
return c:IsNotTuner() and c:GetLevel()==7-lv and c:IsAbleToGraveAsCost()
return c:IsFaceup() and c:IsNotTuner() and c:GetLevel()==7-lv and c:IsAbleToGraveAsCost()
end
function c90036274.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c90036274.cfilter1,tp,LOCATION_MZONE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c90036274.cfilter1,tp,LOCATION_MZONE,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g1=Duel.SelectMatchingCard(tp,c90036274.cfilter1,tp,LOCATION_MZONE,0,1,1,nil)
local g1=Duel.SelectMatchingCard(tp,c90036274.cfilter1,tp,LOCATION_MZONE,0,1,1,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g2=Duel.SelectMatchingCard(tp,c90036274.cfilter2,tp,LOCATION_MZONE,0,1,1,g1:GetFirst(),g1:GetFirst():GetLevel())
g1:Merge(g2)
......
......@@ -76,7 +76,7 @@ function c98076754.tdcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c98076754.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,0,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) end
local g=Duel.GetMatchingGroup(c98076754.filter,tp,0,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,nil)
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
end
function c98076754.tdop(e,tp,eg,ep,ev,re,r,rp)
......
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