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