Commit c7fae86f authored by GuGu's avatar GuGu

Update c86379668.lua

parent 4a8ade74
Pipeline #34183 passed with stage
in 22 seconds
......@@ -29,16 +29,18 @@ function c86379668.initial_effect(c)
end
--
function c86379668.filter(c)
return c:IsAbleToRemove() and c:IsPreviousLocation(LOCATION_DECK) and not c:IsReason(REASON_DRAW)
return c:IsAbleToRemove() and c:IsPreviousLocation(LOCATION_DECK) and c:IsLocation(LOCATION_HAND) and not c:IsReason(REASON_DRAW)
end
function c86379668.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c86379668.filter,1,nil) end
local g=eg:Filter(c86379668.filter,nil)
Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0)
end
function c86379668.op(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(c86379668.filter,1,nil) then
local g=eg:Filter(c86379668.filter,nil)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if tg:Filter(Card.IsRelateToEffect,nil,e):IsExists(c86379668.filter,1,nil) then
local g=tg:Filter(Card.IsRelateToEffect,nil,e):Filter(c86379668.filter,nil)
Duel.Hint(HINT_CARD,0,86379668)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
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