Commit 1bb8075a authored by Huangnan's avatar Huangnan

fix

parent 6059fb71
Pipeline #39936 failed with stages
in 1 minute and 57 seconds
...@@ -90,7 +90,7 @@ function cm.rfilter(c,tp) ...@@ -90,7 +90,7 @@ function cm.rfilter(c,tp)
end end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.rfilter,tp,LOCATION_ONFIELD,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(cm.rfilter,tp,LOCATION_ONFIELD,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.rfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp) local g=Duel.SelectMatchingCard(tp,cm.rfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
......
...@@ -56,7 +56,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -56,7 +56,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
......
...@@ -3,6 +3,7 @@ local s, id, o = GetID() ...@@ -3,6 +3,7 @@ local s, id, o = GetID()
Duel.LoadScript("c97570180.lua") Duel.LoadScript("c97570180.lua")
function s.initial_effect(c) function s.initial_effect(c)
local e1=RiseFish.AddEmptyActivate(c) local e1=RiseFish.AddEmptyActivate(c)
e1:SetCategory(CATEGORY_SEARCH + CATEGORY_TOHAND)
e1:SetTarget(RiseFish.thtg(s.thfilter)) e1:SetTarget(RiseFish.thtg(s.thfilter))
e1:SetOperation(RiseFish.thop(s.thfilter)) e1:SetOperation(RiseFish.thop(s.thfilter))
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
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