Commit db855a07 authored by Nemo Ma's avatar Nemo Ma

fix

parent 2f1d33c0
...@@ -104,7 +104,7 @@ function cm.actarget(e,te,tp) ...@@ -104,7 +104,7 @@ function cm.actarget(e,te,tp)
end end
function cm.accost(e,te,tp) function cm.accost(e,te,tp)
local count=e:GetHandler():GetEquipCount() local count=e:GetHandler():GetEquipCount()
return Duel.IsPlayerCanDiscardDeck(tp,count) return Duel.IsPlayerCanDiscardDeckAsCost(tp,count)
end end
function cm.acop(e,tp,eg,ep,ev,re,r,rp) function cm.acop(e,tp,eg,ep,ev,re,r,rp)
if c15004386[0] then return end if c15004386[0] then return end
......
...@@ -131,7 +131,7 @@ function c9911028.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -131,7 +131,7 @@ function c9911028.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local b1=Duel.IsExistingMatchingCard(c9911028.spfilter1,tp,LOCATION_DECK,0,1,nil,e,tp) local b1=Duel.IsExistingMatchingCard(c9911028.spfilter1,tp,LOCATION_DECK,0,1,nil,e,tp)
local b2=c:IsDestructable() and Duel.IsExistingMatchingCard(c9911028.spfilter2,tp,LOCATION_DECK,0,1,nil,e,tp) local b2=c:IsDestructable() and Duel.IsExistingMatchingCard(c9911028.spfilter2,tp,LOCATION_DECK,0,1,nil,e,tp)
if chk==0 then return b1 or b2 end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (b1 or b2) end
local off=1 local off=1
local ops,opval={},{} local ops,opval={},{}
if b1 then if b1 then
...@@ -154,16 +154,17 @@ function c9911028.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -154,16 +154,17 @@ function c9911028.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c9911028.operation(e,tp,eg,ep,ev,re,r,rp) function c9911028.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local c=e:GetHandler() local c=e:GetHandler()
local sel=e:GetLabel() local sel=e:GetLabel()
if sel==0 then if sel==0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c9911028.spfilter1,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c9911028.spfilter1,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
elseif sel==1 and c:IsRelateToEffect(e) and Duel.Destroy(c,REASON_EFFECT)~=0 then elseif sel==1 and c:IsRelateToEffect(e) and Duel.Destroy(c,REASON_EFFECT)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c9911028.spfilter2,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c9911028.spfilter2,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
......
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