Commit d4f95958 authored by mercury233's avatar mercury233 Committed by GitHub

fix Dicephoon

parent bcc71fa6
...@@ -14,7 +14,7 @@ function c3493058.filter(c) ...@@ -14,7 +14,7 @@ function c3493058.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function c3493058.target(e,tp,eg,ep,ev,re,r,rp,chk) function c3493058.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c3493058.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1)
end end
function c3493058.activate(e,tp,eg,ep,ev,re,r,rp) function c3493058.activate(e,tp,eg,ep,ev,re,r,rp)
...@@ -26,10 +26,12 @@ function c3493058.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,10 +26,12 @@ function c3493058.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()<2 then return end if g:GetCount()<2 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=g:Select(tp,2,2,nil) local dg=g:Select(tp,2,2,nil)
Duel.HintSelection(dg)
Duel.Destroy(dg,REASON_EFFECT) Duel.Destroy(dg,REASON_EFFECT)
elseif dc>=2 and dc<=4 then elseif dc>=2 and dc<=4 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,c3493058.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,aux.ExceptThisCard(e)) local g=Duel.SelectMatchingCard(tp,c3493058.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,aux.ExceptThisCard(e))
Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
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