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

fix

parent 6c1e4a1f
...@@ -21,18 +21,17 @@ function c33400464.initial_effect(c) ...@@ -21,18 +21,17 @@ function c33400464.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c33400464.filter(c) 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 end
function c33400464.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) 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_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) 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_DRAW,nil,0,tp,2)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_SZONE+LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_SZONE+LOCATION_HAND)
end end
function c33400464.activate(e,tp,eg,ep,ev,re,r,rp) 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) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local tc=Duel.SelectMatchingCard(tp,c33400464.filter,tp,LOCATION_SZONE+LOCATION_HAND,0,1,1,nil) 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 if Duel.SendtoGrave(tc,REASON_EFFECT)~=0 then
Duel.Draw(tp,2,REASON_EFFECT) Duel.Draw(tp,2,REASON_EFFECT)
end end
......
...@@ -23,7 +23,7 @@ function c33700941.initial_effect(c) ...@@ -23,7 +23,7 @@ function c33700941.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c33700941.getg(e,tp,eg,ep,ev,re,r,rp,chk) 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 end
function c33700941.geop(e,tp,eg,ep,ev,re,r,rp) function c33700941.geop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() 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