Commit ccf7c60f authored by mercury233's avatar mercury233

revert

parent 8737e30b
...@@ -50,8 +50,8 @@ function c20849090.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,8 +50,8 @@ function c20849090.spcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
end end
function c20849090.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c20849090.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) and e:GetHandler():IsLocation(LOCATION_GRAVE) end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() and e:GetHandler():IsLocation(LOCATION_GRAVE) end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c20849090.spfilter(c,e,tp) function c20849090.spfilter(c,e,tp)
return c:IsSetCard(0xd2) and c:IsLevelBelow(6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xd2) and c:IsLevelBelow(6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -68,4 +68,4 @@ function c20849090.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,4 +68,4 @@ function c20849090.spop(e,tp,eg,ep,ev,re,r,rp)
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
end end
\ No newline at end of file
...@@ -14,9 +14,9 @@ function c23857661.cfilter(c) ...@@ -14,9 +14,9 @@ function c23857661.cfilter(c)
return c:IsSetCard(0x88) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost() return c:IsSetCard(0x88) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
end end
function c23857661.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c23857661.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost()
and Duel.IsExistingMatchingCard(c23857661.cfilter,tp,LOCATION_HAND,0,1,nil) end and Duel.IsExistingMatchingCard(c23857661.cfilter,tp,LOCATION_HAND,0,1,nil) end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
Duel.DiscardHand(tp,c23857661.cfilter,1,1,REASON_COST) Duel.DiscardHand(tp,c23857661.cfilter,1,1,REASON_COST)
end end
function c23857661.operation(e,tp,eg,ep,ev,re,r,rp) function c23857661.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -65,8 +65,8 @@ function c27107590.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,8 +65,8 @@ function c27107590.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function c27107590.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c27107590.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0 and aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) end if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0 and c:IsAbleToRemoveAsCost() end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(c,POS_FACEUP,REASON_COST)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
......
...@@ -87,8 +87,8 @@ function c27383110.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,8 +87,8 @@ function c27383110.thcon(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler()==e:GetHandler() return re:GetHandler()==e:GetHandler()
end end
function c27383110.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c27383110.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsLocation(LOCATION_GRAVE) and aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) end if chk==0 then return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsAbleToRemove() end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c27383110.thfilter(c,e,tp) function c27383110.thfilter(c,e,tp)
return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) and c:IsAbleToHand() and c:IsCanBeEffectTarget(e) return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) and c:IsAbleToHand() and c:IsCanBeEffectTarget(e)
...@@ -117,4 +117,4 @@ function c27383110.evop(e,tp,eg,ep,ev,re,r,rp) ...@@ -117,4 +117,4 @@ function c27383110.evop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
Duel.RaiseEvent(tc,EVENT_CUSTOM+27383110,e,0,tp,tp,0) Duel.RaiseEvent(tc,EVENT_CUSTOM+27383110,e,0,tp,tp,0)
e:SetLabelObject(nil) e:SetLabelObject(nil)
end end
\ No newline at end of file
...@@ -41,8 +41,8 @@ function c29491334.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,8 +41,8 @@ function c29491334.spcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
end end
function c29491334.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c29491334.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) and e:GetHandler():IsLocation(LOCATION_GRAVE) end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() and e:GetHandler():IsLocation(LOCATION_GRAVE) end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c29491334.spfilter(c,e,tp) function c29491334.spfilter(c,e,tp)
return c:IsSetCard(0xd2) and c:IsLevelBelow(5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xd2) and c:IsLevelBelow(5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -59,4 +59,4 @@ function c29491334.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,4 +59,4 @@ function c29491334.spop(e,tp,eg,ep,ev,re,r,rp)
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
end end
\ No newline at end of file
...@@ -47,9 +47,9 @@ function c36704180.drcfilter(c) ...@@ -47,9 +47,9 @@ function c36704180.drcfilter(c)
return (c:IsSetCard(0x10db) or (c:IsSetCard(0xdb) and c:IsType(TYPE_SPELL+TYPE_TRAP))) and c:IsAbleToGraveAsCost() return (c:IsSetCard(0x10db) or (c:IsSetCard(0xdb) and c:IsType(TYPE_SPELL+TYPE_TRAP))) and c:IsAbleToGraveAsCost()
end end
function c36704180.drcost(e,tp,eg,ep,ev,re,r,rp,chk) function c36704180.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost()
and Duel.IsExistingMatchingCard(c36704180.drcfilter,tp,LOCATION_HAND,0,1,nil) end and Duel.IsExistingMatchingCard(c36704180.drcfilter,tp,LOCATION_HAND,0,1,nil) end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
Duel.DiscardHand(tp,c36704180.drcfilter,1,1,REASON_COST,nil) Duel.DiscardHand(tp,c36704180.drcfilter,1,1,REASON_COST,nil)
end end
function c36704180.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c36704180.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -63,8 +63,9 @@ function c37679169.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,8 +63,9 @@ function c37679169.spcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
end end
function c37679169.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c37679169.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) and e:GetHandler():IsLocation(LOCATION_GRAVE) end local c=e:GetHandler()
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) if chk==0 then return c:IsAbleToRemoveAsCost() and c:IsLocation(LOCATION_GRAVE) end
Duel.Remove(c,POS_FACEUP,REASON_COST)
end end
function c37679169.spfilter(c,e,tp) function c37679169.spfilter(c,e,tp)
return c:IsSetCard(0xd2) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xd2) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -61,7 +61,7 @@ function c41201386.cfilter(c) ...@@ -61,7 +61,7 @@ function c41201386.cfilter(c)
return c:IsSetCard(0xba) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0xba) and c:IsAbleToRemoveAsCost()
end end
function c41201386.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c41201386.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost()
and Duel.IsExistingMatchingCard(c41201386.cfilter,tp,LOCATION_HAND,0,1,nil) end and Duel.IsExistingMatchingCard(c41201386.cfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c41201386.cfilter,tp,LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c41201386.cfilter,tp,LOCATION_HAND,0,1,1,nil)
......
...@@ -39,8 +39,9 @@ function c48444114.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,8 +39,9 @@ function c48444114.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c48444114.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c48444114.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) and Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost()
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) and Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end end
function c48444114.filter2(c) function c48444114.filter2(c)
......
...@@ -56,8 +56,8 @@ function c59496924.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,8 +56,8 @@ function c59496924.spcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
end end
function c59496924.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c59496924.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) and e:GetHandler():IsLocation(LOCATION_GRAVE) end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() and e:GetHandler():IsLocation(LOCATION_GRAVE) end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c59496924.spfilter(c,e,tp) function c59496924.spfilter(c,e,tp)
return c:IsSetCard(0xd2) and c:IsLevelBelow(5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xd2) and c:IsLevelBelow(5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -74,4 +74,4 @@ function c59496924.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,4 +74,4 @@ function c59496924.spop(e,tp,eg,ep,ev,re,r,rp)
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
end end
\ No newline at end of file
...@@ -17,9 +17,9 @@ function c62835876.cfilter(c) ...@@ -17,9 +17,9 @@ function c62835876.cfilter(c)
return c:IsSetCard(0xb1) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost() return c:IsSetCard(0xb1) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
end end
function c62835876.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c62835876.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost()
and Duel.IsExistingMatchingCard(c62835876.cfilter,tp,LOCATION_HAND,0,1,nil) end and Duel.IsExistingMatchingCard(c62835876.cfilter,tp,LOCATION_HAND,0,1,nil) end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
Duel.DiscardHand(tp,c62835876.cfilter,1,1,REASON_COST,nil) Duel.DiscardHand(tp,c62835876.cfilter,1,1,REASON_COST,nil)
end end
function c62835876.filter(c) function c62835876.filter(c)
......
...@@ -62,8 +62,8 @@ function c64063868.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,8 +62,8 @@ function c64063868.thcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
end end
function c64063868.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c64063868.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) and e:GetHandler():IsLocation(LOCATION_GRAVE) end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() and e:GetHandler():IsLocation(LOCATION_GRAVE) end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c64063868.thfilter(c) function c64063868.thfilter(c)
return c:IsSetCard(0xd2) and c:IsLevelBelow(8) and c:IsAbleToHand() return c:IsSetCard(0xd2) and c:IsLevelBelow(8) and c:IsAbleToHand()
......
...@@ -81,9 +81,9 @@ function c66171432.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,9 +81,9 @@ function c66171432.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c66171432.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c66171432.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost()
and Duel.CheckReleaseGroup(tp,nil,1,nil) end and Duel.CheckReleaseGroup(tp,nil,1,nil) end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
local g=Duel.SelectReleaseGroup(tp,nil,1,1,nil) local g=Duel.SelectReleaseGroup(tp,nil,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -93,8 +93,8 @@ function c85991529.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,8 +93,8 @@ function c85991529.thcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
end end
function c85991529.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c85991529.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) and e:GetHandler():IsLocation(LOCATION_GRAVE) end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() and e:GetHandler():IsLocation(LOCATION_GRAVE) end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c85991529.thfilter(c) function c85991529.thfilter(c)
return c:IsSetCard(0xd2) and c:IsLevelBelow(9) and c:IsAbleToHand() return c:IsSetCard(0xd2) and c:IsLevelBelow(9) and c:IsAbleToHand()
......
...@@ -50,8 +50,8 @@ function c92609670.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,8 +50,8 @@ function c92609670.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c92609670.lvcost(e,tp,eg,ep,ev,re,r,rp,chk) function c92609670.lvcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsLocation(LOCATION_GRAVE) and aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) end if chk==0 then return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsAbleToRemove() end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c92609670.lvfilter(c) function c92609670.lvfilter(c)
return c:IsFaceup() and c:IsSetCard(0x106f) and c:GetLevel()>1 return c:IsFaceup() and c:IsSetCard(0x106f) and c:GetLevel()>1
......
...@@ -47,8 +47,8 @@ function c94454495.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,8 +47,8 @@ function c94454495.spcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
end end
function c94454495.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c94454495.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) and e:GetHandler():IsLocation(LOCATION_GRAVE) end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() and e:GetHandler():IsLocation(LOCATION_GRAVE) end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c94454495.spfilter(c,e,tp) function c94454495.spfilter(c,e,tp)
return c:IsSetCard(0xd2) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xd2) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
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