Commit 037a40e7 authored by mercury233's avatar mercury233

fix

parent 80f67a50
......@@ -14,22 +14,22 @@ function c101009057.initial_effect(c)
c:RegisterEffect(e1)
end
function c101009057.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0xb3)
return c:IsFaceup() and c:IsSetCard(0xb3) and c:GetOriginalType()&TYPE_MONSTER~=0
end
function c101009057.condition(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c101009057.cfilter,tp,LOCATION_MZONE,0,nil)
local g=Duel.GetMatchingGroup(c101009057.cfilter,tp,LOCATION_ONFIELD,0,nil)
return g:GetClassCount(Card.GetCode)>=3
end
function c101009057.filter(c)
return c:IsFaceup() and c:IsSetCard(0xb3) and c:IsAbleToHand()
return c101009057.cfilter(c) and c:IsAbleToHand()
end
function c101009057.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101009057.filter,tp,LOCATION_MZONE,0,1,nil) end
local g=Duel.GetMatchingGroup(c101009057.filter,tp,LOCATION_MZONE,0,nil)
if chk==0 then return Duel.IsExistingMatchingCard(c101009057.filter,tp,LOCATION_ONFIELD,0,1,nil) end
local g=Duel.GetMatchingGroup(c101009057.filter,tp,LOCATION_ONFIELD,0,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0)
end
function c101009057.activate(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(c101009057.filter,tp,LOCATION_MZONE,0,nil)
local sg=Duel.GetMatchingGroup(c101009057.filter,tp,LOCATION_ONFIELD,0,nil)
if Duel.SendtoHand(sg,nil,REASON_EFFECT)>0 then
local ct=5-Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)
if ct>0 and Duel.IsPlayerCanDraw(tp,ct)
......
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