Commit 48a3e981 authored by Tachibana's avatar Tachibana

ndyd

parent 5456076a
...@@ -67,7 +67,7 @@ end ...@@ -67,7 +67,7 @@ end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and c:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) and c:IsRelateToEffect(e) and Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 then
Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.SendtoHand(c,nil,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -50,17 +50,17 @@ end ...@@ -50,17 +50,17 @@ end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.thfilter(chkc) end
if chk==0 then return e:GetHandler():IsAbleToDeck() and Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) and c:GetFlagEffect(m)==0 end if chk==0 then return e:GetHandler():IsAbleToDeck() and Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler()) and c:GetFlagEffect(m)==0 end
c:RegisterFlagEffect(m,RESET_CHAIN,0,1) c:RegisterFlagEffect(m,RESET_CHAIN,0,1)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,cm.thfilter,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectTarget(tp,cm.thfilter,tp,LOCATION_GRAVE,0,1,1,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) then if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) then
local g=Group.__band(c,tc) local g=Group.FromCards(c,tc)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -78,5 +78,5 @@ function cm.tf1(c) ...@@ -78,5 +78,5 @@ function cm.tf1(c)
end end
--e4 --e4
function cm.tf4(c) function cm.tf4(c)
return c:IsSetCard(0x388) and c:IsAbleToHand() return c:IsSetCard(0x388) and c:IsAbleToHand() and c:IsFaceup()
end end
\ No newline at end of file
...@@ -87,7 +87,7 @@ function cm.initial_effect(c) ...@@ -87,7 +87,7 @@ function cm.initial_effect(c)
end end
--e3 --e3
function cm.tf3(c) function cm.tf3(c)
return c:IsSetCard(0x388) and c:IsAbleToDeck() return c:IsSetCard(0x388) and c:IsAbleToDeck() and c:IsFaceup()
end end
--e4 --e4
function cm.cof4(c) function cm.cof4(c)
......
...@@ -53,12 +53,12 @@ function cm.initial_effect(c) ...@@ -53,12 +53,12 @@ function cm.initial_effect(c)
e4:SetType(EFFECT_TYPE_IGNITION) e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_GRAVE) e4:SetRange(LOCATION_GRAVE)
e4:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk,chkc) e4:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(cm.tf1,tp,LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.tf2,tp,LOCATION_REMOVED,0,1,nil) end
local g=Duel.GetMatchingGroup(cm.tf1,tp,LOCATION_REMOVED,0,1,nil) local g=Duel.GetMatchingGroup(cm.tf2,tp,LOCATION_REMOVED,0,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,LOCATION_REMOVED) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,LOCATION_REMOVED)
end) end)
e4:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) e4:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.tf1,tp,LOCATION_REMOVED,0,e:GetHandler()) local g=Duel.GetMatchingGroup(cm.tf2,tp,LOCATION_REMOVED,0,e:GetHandler())
if e:GetHandler():IsRelateToEffect(e) and Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)~=0 and g:GetCount()>0 then if e:GetHandler():IsRelateToEffect(e) and Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)~=0 and g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
...@@ -72,3 +72,7 @@ end ...@@ -72,3 +72,7 @@ end
function cm.tf1(c,e,tp) function cm.tf1(c,e,tp)
return c:IsSetCard(0x388) and c:IsAbleToGrave() and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x388) and c:IsAbleToGrave() and c:IsType(TYPE_MONSTER)
end end
--e2
function cm.tf2(c,e,tp)
return c:IsSetCard(0x388) and c:IsAbleToGrave() and c:IsType(TYPE_MONSTER) and c:IsFaceup()
end
\ No newline at end of file
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