Commit 851b918a authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent f40ea99d
......@@ -21,9 +21,8 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,c)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD,c)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function s.filter(c)
return c:IsAbleToHand() and c:IsSetCard(0x3a7a) and c:IsType(TYPE_MONSTER)
......
......@@ -22,8 +22,7 @@ function s.ndcfilter(c)
return c:IsFaceup() and c:IsCode(12855501)
end
function s.handcon(e)
if Duel.GetTurnPlayer()==e:GetHandlerPlayer() then return end
return Duel.IsExistingMatchingCard(s.ndcfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
return Duel.IsExistingMatchingCard(s.ndcfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil) and Duel.GetTurnPlayer()~=e:GetHandlerPlayer()
end
function s.filter(c)
return c:IsFaceup() and c:IsSetCard(0x3a7a)
......
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