Commit ae86fb2b authored by salix5's avatar salix5

Merge pull request #1250 from nekrozar/patch-2

fix Featherizer
parents d6f92cb9 84e6e49f
...@@ -18,8 +18,10 @@ function c32271987.filter(c) ...@@ -18,8 +18,10 @@ function c32271987.filter(c)
return c:IsType(TYPE_DUAL) and c:IsAbleToGrave() return c:IsType(TYPE_DUAL) and c:IsAbleToGrave()
end end
function c32271987.target(e,tp,eg,ep,ev,re,r,rp,chk) function c32271987.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) if chk==0 then
and Duel.IsExistingMatchingCard(c32271987.filter,tp,LOCATION_DECK,0,1,nil) end local ct=Duel.GetMatchingGroupCount(c32271987.filter,tp,LOCATION_DECK,0,nil)
if ct==1 and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==1 then return false end
return Duel.IsPlayerCanDraw(tp,1) and ct>=1 end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
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