Commit b3d2d003 authored by mercury233's avatar mercury233

fix

parent 9b3d5773
...@@ -50,7 +50,7 @@ function c100259029.spcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c100259029.spcon2(e,tp,eg,ep,ev,re,r,rp)
end end
function c100259029.spfilter(c,e,tp) function c100259029.spfilter(c,e,tp)
return c:IsCode(93717133) return c:IsCode(93717133)
and (Duel.GetLocation(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
or (Duel.IsExistingMatchingCard(c100259029.matfilter,tp,LOCATION_MZONE,0,1,nil) and c:IsCanOverlay())) or (Duel.IsExistingMatchingCard(c100259029.matfilter,tp,LOCATION_MZONE,0,1,nil) and c:IsCanOverlay()))
end end
function c100259029.matfilter(c) function c100259029.matfilter(c)
......
...@@ -107,17 +107,17 @@ function c100259037.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,17 +107,17 @@ function c100259037.effop(e,tp,eg,ep,ev,re,r,rp)
rc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(100259037,5)) rc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(100259037,5))
Duel.RegisterFlagEffect(tp,100259037,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,100259037,RESET_PHASE+PHASE_END,0,1)
end end
function c100259037.desfilter(c,tp) function c100259037.desfilter3(c,tp)
return Duel.IsExistingMatchingCard(c100259037.tdfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,c) return Duel.IsExistingMatchingCard(c100259037.tdfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,c)
end end
function c100259037.tdfilter(c) function c100259037.tdfilter(c)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsSetCard(0xae) and c:IsAbleToDeck() return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsSetCard(0xae) and c:IsAbleToDeck()
end end
function c100259037.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c100259037.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c100259037.desfilter(chkc,tp) end if chkc then return chkc:IsOnField() and c100259037.desfilter3(chkc,tp) end
if chk==0 then return Duel.IsExistingTarget(c100259037.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,tp) end if chk==0 then return Duel.IsExistingTarget(c100259037.desfilter3,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c100259037.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,tp) local g=Duel.SelectTarget(tp,c100259037.desfilter3,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,tp)
local sg=Duel.GetMatchingGroup(c100259037.tdfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,g) local sg=Duel.GetMatchingGroup(c100259037.tdfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,g)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
......
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