Commit bd9ee875 authored by Satty's avatar Satty

fix

parent ed78f908
Pipeline #36369 passed with stages
in 32 minutes and 15 seconds
...@@ -36,13 +36,13 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -36,13 +36,13 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=0 local ft=0
if e:GetHandler():IsLocation(LOCATION_GRAVE) then ft=1 end if e:GetHandler():IsLocation(LOCATION_GRAVE) then ft=1 end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>ft if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>ft
and Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK,0,1,nil) end and Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g1=Duel.SelectMatchingCard(tp,cm.tgfilter,tp,LOCATION_DECK,0,1,1,nil) local g1=Duel.SelectMatchingCard(tp,cm.tgfilter,tp,LOCATION_DECK,0,1,1,nil,tp)
if g1:GetCount()>0 and Duel.SendtoGrave(g1,nil,REASON_EFFECT)~=0 if g1:GetCount()>0 and Duel.SendtoGrave(g1,nil,REASON_EFFECT)~=0
and g1:GetFirst():IsLocation(LOCATION_GRAVE) then and g1:GetFirst():IsLocation(LOCATION_GRAVE) then
Duel.ConfirmCards(1-tp,g1) Duel.ConfirmCards(1-tp,g1)
......
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