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

byd

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