Commit adc67645 authored by TanakaKotoha's avatar TanakaKotoha

wadashimo

parent a2b5875f
Pipeline #657 passed with stages
in 40 minutes and 3 seconds
......@@ -5,7 +5,7 @@ function cm.initial_effect(c)
iFunc(c).c("RegisterEffect",iFunc(c)
.e("SetCategory",CATEGORY_NEGATE+CATEGORY_DESTROY)
.e("SetType",EFFECT_TYPE_QUICK_O)
.e("SetCode",EVENT_CHAINING)
.e("SetCode",EVENT_SPSUMMON)
.e("SetRange",LOCATION_HAND)
.e("SetCondition",function(e,tp,eg,ep,ev,re,r,rp)
return tp~=ep and Duel.GetCurrentChain()==0 end)
......@@ -19,11 +19,13 @@ function cm.initial_effect(c)
.e("SetTarget",function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE_SUMMON,eg,eg:GetCount(),0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,eg:GetCount(),0,0)
if Duel.IsExistingMatchingCard(cm.mfilter,tp,LOCATION_MZONE,0,1,nil) then
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,0)
end end)
.e("SetOperation",function(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateSummon(eg) and Duel.Destroy(eg,REASON_EFFECT) and re:GetHandler():IsRelateToEffect(re) then
Duel.NegateSummon(eg)
if Duel.Destroy(eg,REASON_EFFECT)~=0 then
if Duel.IsExistingMatchingCard(cm.mfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) then
if Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
local g = Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_DECK,0,1,1,nil)
......
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