Commit bfe7ae41 authored by Vury Leo's avatar Vury Leo

use cate instead of operation info

parent e974281e
Pipeline #40657 failed with stages
in 2 minutes and 55 seconds
...@@ -26,9 +26,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -26,9 +26,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,s.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,c,tp) local g=Duel.SelectTarget(tp,s.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,c,tp)
if g:IsExists(Card.IsControler,1,nil,tp) then if g:IsExists(Card.IsControler,1,nil,tp) then
e:SetCategory(e:GetCategory()|CATEGORY_TOHAND|CATEGORY_GRAVE_ACTION) e:SetCategory(CATEGORY_DESTROY|CATEGORY_TOHAND|CATEGORY_GRAVE_ACTION)
e:SetLabel(1) e:SetLabel(1)
else else
e:SetCategory(CATEGORY_DESTROY)
e:SetLabel(0) e:SetLabel(0)
end end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
......
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