Commit 4db81b68 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 8e2de4c1
...@@ -221,7 +221,7 @@ function s.cfilters(c) ...@@ -221,7 +221,7 @@ function s.cfilters(c)
return c:IsLevel(6) return c:IsLevel(6)
end end
function s.drcon(e,tp,eg,ep,ev,re,r,rp) function s.drcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilters,1,nil) return eg:IsExists(s.cfilters,1,e:GetHandler())
end end
function s.filter(c,e,tp) function s.filter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_FIEND,RACE_BEASTWARRIOR) and c:IsType(TYPE_MONSTER) and c:IsLevel(6) and c:GetAttack()==c:GetDefense() return c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_FIEND,RACE_BEASTWARRIOR) and c:IsType(TYPE_MONSTER) and c:IsLevel(6) and c:GetAttack()==c:GetDefense()
......
...@@ -29,9 +29,11 @@ function cm.initial_effect(c) ...@@ -29,9 +29,11 @@ function cm.initial_effect(c)
local g=Duel.SelectMatchingCard(tp,cm.tpfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.tpfilter,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
if Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)~=0 then if Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)~=0 and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 then
Duel.BreakEffect() if Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD,nil) Duel.BreakEffect()
Duel.DiscardHand(tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD,nil)
end
end end
end end
end) 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