Commit 5ffef6f4 authored by TanakaKotoha's avatar TanakaKotoha

wadashimo

parent 0355f18a
Pipeline #633 passed with stages
in 41 minutes and 30 seconds
...@@ -36,17 +36,14 @@ function c12003004.filter(c) ...@@ -36,17 +36,14 @@ function c12003004.filter(c)
end end
function c12003004.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c12003004.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_DECK) and c12003004.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_DECK) and c12003004.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c12003004.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c12003004.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectTarget(tp,c12003004.filter,tp,LOCATION_DECK,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end end
function c12003004.operation(e,tp,eg,ep,ev,re,r,rp) function c12003004.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
if tc:IsRelateToEffect(e) then local g=Duel.SelectMatchingCard(tp,c12003004.filter,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,g)
end
end end
function c12003004.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c12003004.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
......
...@@ -23,7 +23,7 @@ function cm.spcon(e,c) ...@@ -23,7 +23,7 @@ function cm.spcon(e,c)
local tp=c:GetControler() local tp=c:GetControler()
if not c:GetReasonEffect() then return false end if not c:GetReasonEffect() then return false end
local tt=c:GetReasonEffect():GetHandler() local tt=c:GetReasonEffect():GetHandler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and srre.check_set_HakaShiro(tt) return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and srre.check_set_HakaShiro(tt) and tt:IsType(TYPE_MONSTER)
end end
function cm.filter(c) function cm.filter(c)
return srre.check_set_HakaShiro(c) and c:IsAbleToHand() return srre.check_set_HakaShiro(c) and c:IsAbleToHand()
......
...@@ -20,7 +20,7 @@ function cm.counterfilter(c) ...@@ -20,7 +20,7 @@ function cm.counterfilter(c)
return c:GetSummonLocation()~=LOCATION_EXTRA return c:GetSummonLocation()~=LOCATION_EXTRA
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)==0 and Duel.IsPlayerCanSendtoGrave(tp) end if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_SPSUMMON)==0 and Duel.IsPlayerCanSendtoGrave(tp) end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
......
...@@ -12,6 +12,7 @@ function cm.initial_effect(c) ...@@ -12,6 +12,7 @@ function cm.initial_effect(c)
e1:SetCategory(CATEGORY_EQUIP) e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,m)
e1:SetHintTiming(TIMINGS_CHECK_MONSTER) e1:SetHintTiming(TIMINGS_CHECK_MONSTER)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetTarget(cm.eqtg) e1:SetTarget(cm.eqtg)
......
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