Commit b5b90e58 authored by VanillaSalt's avatar VanillaSalt

fix

parent 563cb660
...@@ -48,7 +48,7 @@ function c25451652.spfilter(c,e,tp) ...@@ -48,7 +48,7 @@ function c25451652.spfilter(c,e,tp)
end end
function c25451652.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c25451652.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c25451652.ctfilter,tp,0,LOCATION_MZONE,1,nil,e,tp) and Duel.IsExistingMatchingCard(c25451652.ctfilter,tp,0,LOCATION_MZONE,1,nil)
and Duel.IsExistingMatchingCard(c25451652.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c25451652.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
end end
......
...@@ -43,7 +43,7 @@ function c26964762.spfilter(c,e,tp) ...@@ -43,7 +43,7 @@ function c26964762.spfilter(c,e,tp)
return c:IsSetCard(0xc008) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xc008) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c26964762.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c26964762.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c26964762.spfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c26964762.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c26964762.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c26964762.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
...@@ -90,10 +90,10 @@ function c4474060.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -90,10 +90,10 @@ function c4474060.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c4474060.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c4474060.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c4474060.thfilter(chkc,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c4474060.thfilter(chkc) end
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectTarget(tp,c4474060.thfilter,tp,LOCATION_GRAVE,0,1,1,nil,tp) local g=Duel.SelectTarget(tp,c4474060.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end end
function c4474060.thop(e,tp,eg,ep,ev,re,r,rp) function c4474060.thop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -50,11 +50,11 @@ function c50179591.rmcon1(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,11 +50,11 @@ function c50179591.rmcon1(e,tp,eg,ep,ev,re,r,rp)
return eg:IsContains(tc) and tc:GetFlagEffect(50179591)~=0 return eg:IsContains(tc) and tc:GetFlagEffect(50179591)~=0
end end
function c50179591.rmop1(e,tp,eg,ep,ev,re,r,rp) function c50179591.rmop1(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_EXTRA) local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_EXTRA,nil)
if ct<3 then return end if g:GetCount()<3 then return end
Duel.Hint(HINT_CARD,0,50179591) Duel.Hint(HINT_CARD,0,50179591)
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_REMOVE)
local mg=g:FilterSelect(1-tp,Card.IsAbleToRemove,ct,ct,nil) local mg=g:Select(1-tp,3,3,nil)
if mg:GetCount()>0 then if mg:GetCount()>0 then
Duel.Remove(mg,POS_FACEUP,REASON_EFFECT) Duel.Remove(mg,POS_FACEUP,REASON_EFFECT)
end end
......
...@@ -14,7 +14,7 @@ end ...@@ -14,7 +14,7 @@ end
function c50501121.costfilter(c) function c50501121.costfilter(c)
return c:IsSetCard(0xef) return c:IsSetCard(0xef)
and c:IsType(TYPE_MONSTER) and (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsAbleToGraveAsCost() and c:IsType(TYPE_MONSTER) and (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsAbleToGraveAsCost()
and Duel.IsExistingMatchingCard(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) and Duel.IsExistingMatchingCard(nil,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end end
function c50501121.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c50501121.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c50501121.costfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c50501121.costfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil) 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