Commit c501b6d8 authored by Tachibana's avatar Tachibana

得得得得得

parent 77842035
Pipeline #12951 passed with stages
in 36 minutes and 15 seconds
......@@ -140,13 +140,13 @@ function c60151124.regop2(e,tp,eg,ep,ev,re,r,rp)
end
function c60151124.tdtgfilter(c,tp)
return c:IsSetCard(0x9b23) and c:IsAbleToRemove()
and Duel.IsExistingTarget(c60151124.tdtgfilter2,tp,LOCATION_DECK,0,1,nil,c)
and Duel.IsExistingMatchingCard(c60151124.tdtgfilter2,tp,LOCATION_DECK,0,1,nil,c)
end
function c60151124.tdtgfilter2(c,tc)
return c:IsSetCard(0x9b23) and (c:IsAbleToGrave() or c:IsAbleToHand()) and c:GetCode()~=tc:GetCode()
end
function c60151124.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c60151124.tdtgfilter,tp,LOCATION_GRAVE,0,1,nil,tp) end
if chk==0 then return Duel.IsExistingMatchingCard(c60151124.tdtgfilter,tp,LOCATION_GRAVE,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,c60151124.tdtgfilter,tp,LOCATION_GRAVE,0,1,1,nil,tp)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
......@@ -158,7 +158,7 @@ function c60151124.tdop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
if Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT)
local g=Duel.SelectTarget(tp,c60151124.tdtgfilter2,tp,LOCATION_DECK,0,1,1,nil,tc)
local g=Duel.SelectMatchingCard(tp,c60151124.tdtgfilter2,tp,LOCATION_DECK,0,1,1,nil,tc)
local tc2=g:GetFirst()
if tc2:IsAbleToHand() and tc2:IsAbleToGrave() then
if Duel.SelectYesNo(tp,aux.Stringid(60151124,3)) then
......
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