Commit 42cfec6f authored by DailyShana's avatar DailyShana

fix

parent 03fceae4
...@@ -14,7 +14,7 @@ function c21502796.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -14,7 +14,7 @@ function c21502796.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,3) Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,3)
end end
function c21502796.operation(e,tp,eg,ep,ev,re,r,rp) function c21502796.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(21502796,1)) then if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(21502796,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
......
...@@ -31,7 +31,7 @@ function c37256334.deftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -31,7 +31,7 @@ function c37256334.deftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c37256334.deffilter(chkc,def) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c37256334.deffilter(chkc,def) end
if chk==0 then return Duel.IsExistingTarget(c37256334.deffilter,tp,LOCATION_MZONE,0,1,nil,def) end if chk==0 then return Duel.IsExistingTarget(c37256334.deffilter,tp,LOCATION_MZONE,0,1,nil,def) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c37256334.deffilter,tp,LOCATION_MZONE,0,1,1,nil,def) Duel.SelectTarget(tp,c37256334.deffilter,tp,LOCATION_MZONE,0,1,1,nil,def)
end end
function c37256334.defop(e,tp,eg,ep,ev,re,r,rp) function c37256334.defop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -49,7 +49,7 @@ function c37256334.defop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function c37256334.defop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c37256334.deffilter(c) function c37256334.deffilter(c)
return c:GetBaseDefense()>=0 and c:IsSetCard(0x9f) and c:IsFaceup() return c:IsFaceup() and c:IsSetCard(0x9f)
end end
function c37256334.defval(e,c) function c37256334.defval(e,c)
local g=Duel.GetMatchingGroup(c37256334.deffilter,c:GetControler(),LOCATION_MZONE,0,c) local g=Duel.GetMatchingGroup(c37256334.deffilter,c:GetControler(),LOCATION_MZONE,0,c)
......
...@@ -28,8 +28,8 @@ function c645087.spfilter(c,e,tp) ...@@ -28,8 +28,8 @@ function c645087.spfilter(c,e,tp)
end end
function c645087.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c645087.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c645087.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c645087.spfilter(chkc,e,tp) end
if chk==0 then return Duel.IsExistingTarget(c645087.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end and Duel.IsExistingTarget(c645087.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c645087.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c645087.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,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