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

byd

parent 8e2de4c1
......@@ -221,7 +221,7 @@ function s.cfilters(c)
return c:IsLevel(6)
end
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
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()
......
......@@ -29,9 +29,11 @@ function cm.initial_effect(c)
local g=Duel.SelectMatchingCard(tp,cm.tpfilter,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst()
if tc then
if Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)~=0 then
Duel.BreakEffect()
Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD,nil)
if Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)~=0 and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 then
if Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.BreakEffect()
Duel.DiscardHand(tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD,nil)
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