Commit 0137425d authored by Nemo Ma's avatar Nemo Ma

fix

parent 6c1e4a1f
......@@ -21,21 +21,20 @@ function c33400464.initial_effect(c)
c:RegisterEffect(e2)
end
function c33400464.filter(c)
return c:IsSetCard(0x6343) and c:IsAbleToGrave()
return c:IsSetCard(0x6343) and (c:IsFaceup() or c:IsLocation(LOCATION_HAND)) and c:IsAbleToGrave()
end
function c33400464.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE+LOCATION_HAND) and chkc:IsControler(tp) and c33400464.filter(chkc,tp) end
if chk==0 then return Duel.IsExistingMatchingCard(c33400464.filter,tp,LOCATION_SZONE+LOCATION_HAND,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_SZONE+LOCATION_HAND)
if chk==0 then return Duel.IsExistingMatchingCard(c33400464.filter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_SZONE+LOCATION_HAND)
end
function c33400464.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(c33400464.filter,tp,LOCATION_SZONE+LOCATION_HAND,0,1,nil) then
if Duel.IsExistingMatchingCard(c33400464.filter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,nil) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local tc=Duel.SelectMatchingCard(tp,c33400464.filter,tp,LOCATION_SZONE+LOCATION_HAND,0,1,1,nil)
if Duel.SendtoGrave(tc,REASON_EFFECT)~=0 then
Duel.Draw(tp,2,REASON_EFFECT)
end
local tc=Duel.SelectMatchingCard(tp,c33400464.filter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,1,e:GetHandler())
if Duel.SendtoGrave(tc,REASON_EFFECT)~=0 then
Duel.Draw(tp,2,REASON_EFFECT)
end
end
end
......
......@@ -23,7 +23,7 @@ function c33700941.initial_effect(c)
c:RegisterEffect(e3)
end
function c33700941.getg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)>0 end
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
end
function c33700941.geop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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