Commit 2b3a9e59 authored by Tachibana's avatar Tachibana 🐟

pic

parent 5e4a8db1
Pipeline #26447 passed with stages
in 22 minutes and 56 seconds
......@@ -188,11 +188,17 @@ function cm.effop(e,tp,eg,ep,ev,re,r,rp)
if not Auxiliary.HackIsAbleToGrave then
Auxiliary.HackIsAbleToGrave=true
HackIsAbleToGrave=Card.IsAbleToGrave
HackIsAbleToGraveAsCost=Card.IsAbleToGraveAsCost
function Card.IsAbleToGrave(c)
if rc:IsFaceup() then
return false
end
end
function Card.IsAbleToGraveAsCost(c)
if rc:IsFaceup() then
return false
end
end
end
if not rc:IsType(TYPE_EFFECT) then
local e3=Effect.CreateEffect(c)
......
......@@ -67,13 +67,13 @@ function cm.counterfilter(c)
return c:IsSetCard(0xc19)
end
function cm.spfilter(c)
return c:IsAbleToHandAsCost()
return c:IsAbleToGraveAsCost()
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_ONFIELD,0,1,nil)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_ONFIELD,0,1,99,nil)
if g then
g:KeepAlive()
......@@ -174,13 +174,13 @@ function cm.effop(e,tp,eg,ep,ev,re,r,rp)
rc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,1))
end
function cm.efilter(e,te)
return not te:GetOwner():IsSetCard(0xc19) and
return not (te:GetOwner():IsSetCard(0xc19) and
(te:GetCode()&EFFECT_SET_ATTACK~=0
or te:GetCode()&EFFECT_SET_ATTACK_FINAL~=0
or te:GetCode()&EFFECT_SET_BASE_ATTACK~=0
or te:GetCode()&EFFECT_SET_BASE_ATTACK_FINAL~=0
or te:GetCode()&EFFECT_SET_BATTLE_ATTACK~=0
or te:GetCode()&EFFECT_UPDATE_ATTACK~=0)
or te:GetCode()&EFFECT_UPDATE_ATTACK~=0))
end
......
......@@ -36,8 +36,8 @@ function c67200263.spfilter1(c,tp)
return c:IsFaceup() and c:IsSetCard(0x674) and c:IsReleasable()
end
function c67200263.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c67200263.spfilter1,1,nil) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c67200263.spfilter1,1,1,nil)
if chk==0 then return Duel.CheckReleaseGroup(tp,c67200263.spfilter1,1,nil) end
local sg=Duel.SelectReleaseGroup(tp,c67200263.spfilter1,1,1,nil)
Duel.Release(sg,REASON_COST)
end
function c67200263.tgfilter(c)
......@@ -56,15 +56,15 @@ function c67200263.tgop(e,tp,eg,ep,ev,re,r,rp)
end
--
function c67200263.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c67200263.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT)
end
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