Commit 250013e6 authored by Tachibana's avatar Tachibana

ndyd

parent 9c11de53
......@@ -17,7 +17,7 @@ function cm.initial_effect(c)
--special summon other monsters
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e2:SetCode(EVENT_FREE_CHAIN)
......
......@@ -23,10 +23,10 @@ function cm.initial_effect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_CANNOT_REMOVE)
e4:SetRange(LOCATION_FZONE)
e4:SetTargetRange(LOCATION_GRAVE,0)
e4:SetTargetRange(LOCATION_DECK,0)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetTargetRange(0,LOCATION_GRAVE)
e5:SetTargetRange(0,LOCATION_DECK)
c:RegisterEffect(e5)
--CANNOT_DISCARD_DECK
local e2=Effect.CreateEffect(c)
......@@ -46,7 +46,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
--tohand
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e2:SetCode(EVENT_LEAVE_FIELD)
......
......@@ -13,6 +13,9 @@ end
function cm.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x9fa8) and c:IsType(TYPE_SYNCHRO)
end
function cm.filter(c)
return c:IsAbleToRemove()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
......@@ -24,7 +27,7 @@ end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,0,LOCATION_GRAVE,1,5,nil)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT)
end
function cm.actop(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
......
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