Commit dc56594e authored by Tachibana's avatar Tachibana

ybb

parent 689e164e
...@@ -29,7 +29,7 @@ function c47530012.initial_effect(c) ...@@ -29,7 +29,7 @@ function c47530012.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c47530012.cfilter(c) function c47530012.cfilter(c)
return c:IsAbleToDeckAsCost() and c:IsRace(RACE_MACHINE) return c:IsAbleToDeckAsCost() and c:IsRace(RACE_MACHINE) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
end end
function c47530012.tkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c47530012.tkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c47530012.cfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c47530012.cfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
...@@ -56,7 +56,7 @@ function c47530012.tkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function c47530012.tkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
token:RegisterEffect(e1,true) token:RegisterEffect(e1,true)
if Duel.SpecialSummonComplete() then if Duel.SpecialSummonComplete() then
local cg=token:GetColumnGroup():Filter(Card.IsControler,nil,1-tp) local cg=token:GetColumnGroup()
if cg:GetCount()>0 then if cg:GetCount()>0 then
Duel.HintSelection(cg) Duel.HintSelection(cg)
Duel.SendtoGrave(cg,REASON_RULE) Duel.SendtoGrave(cg,REASON_RULE)
...@@ -66,9 +66,9 @@ function c47530012.tkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,9 +66,9 @@ function c47530012.tkop(e,tp,eg,ep,ev,re,r,rp)
end end
function c47530012.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c47530012.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,4,c) end if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,4,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,4,4,c) local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,4,4,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,4,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,4,0,0)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,4,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,4,0,0)
end end
......
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