Commit ce338699 authored by Nemo Ma's avatar Nemo Ma

fix

parent c9dd8183
......@@ -26,7 +26,7 @@ function c22020350.spfilter(c,e,tp)
end
function c22020350.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c22020350.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c22020350.filter,tp,0,LOCATION_MZONE,1,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
if chk==0 then return Duel.IsExistingTarget(c22020350.filter,tp,0,LOCATION_MZONE,1,nil) and Duel.GetLocationCount(1-tp,LOCATION_SZONE)>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c22020350.filter,tp,0,LOCATION_MZONE,1,1,nil)
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then
......@@ -49,7 +49,7 @@ function c22020350.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(TYPE_SPELL)
tc:RegisterEffect(e1)
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0
and Duel.SelectYesNo(tp,aux.Stringid(22020350,0)) then
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c22020350.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(22020350,0)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c22020350.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
......
......@@ -34,8 +34,8 @@ end
function c6160002.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x616)
end
function c6160002.atkcon(e)
return Duel.IsExistingMatchingCard(c6160002.cfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,e:GetHandler())
function c6160002.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c6160002.cfilter,tp,LOCATION_ONFIELD,0,1,e:GetHandler())
end
function c6160002.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler()) end
......
......@@ -63,7 +63,7 @@ function c67210102.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
and Duel.IsExistingMatchingCard(c67210102.pfilter,tp,LOCATION_GRAVE+LOCATION_EXTRA,0,1,nil) end
end
function c67210102.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c67210102.pfilter),tp,LOCATION_GRAVE+LOCATION_EXTRA,0,1,1,nil)
if g:GetCount()>0 then
local tc=g:GetFirst()
......
......@@ -67,7 +67,7 @@ function c67210106.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
and Duel.IsExistingMatchingCard(c67210106.pfilter,tp,LOCATION_GRAVE+LOCATION_EXTRA,0,1,nil) end
end
function c67210106.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c67210106.pfilter),tp,LOCATION_GRAVE+LOCATION_EXTRA,0,1,1,nil)
if g:GetCount()>0 then
Duel.MoveToField(g:GetFirst(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
......
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