Commit 1e864401 authored by GuGu's avatar GuGu

Update c29059.lua

parent 11b0f475
Pipeline #41144 passed with stage
in 33 seconds
......@@ -51,8 +51,8 @@ end
--效果对象:卡组中的一张「幻想乡」
function c29059.filter1(c)
return c:IsCode(10000) and c:IsAbleToHand()
end
function c29059.target1(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c29059.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c29059.filter1,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......@@ -62,8 +62,8 @@ function c29059.operation1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c29059.filter1,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
......@@ -86,5 +86,5 @@ function c29059.operation2(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1, tp)
end
function c29059.aclimit(e, re, tp)
return re:GetActivateLocation() == LOCATION_HAND
return re:GetActivateLocation() == LOCATION_HAND and not re:IsHasType(EFFECT_TYPE_ACTIVATE)
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