Commit de73317a authored by wind2009's avatar wind2009

Fix 幻奏の華歌神フラワリング・エトワール

parent ae9ea45c
......@@ -33,6 +33,9 @@ function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_MZONE)
end
function s.rfilter(c)
return c:IsFaceup() and c:IsAbleToHand()
end
function s.rmop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE,0,nil)
if g:GetCount()==0 then return end
......@@ -56,7 +59,7 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
e1:SetOperation(s.retop)
Duel.RegisterEffect(e1,tp)
local ct=#og
local thg=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_ONFIELD,nil)
local thg=Duel.GetMatchingGroup(s.rfilter,tp,0,LOCATION_ONFIELD,nil)
if ct*#thg>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
......
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