Commit 9ba78e66 authored by mercury233's avatar mercury233

format

parent 5994e4a9
...@@ -51,7 +51,6 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,6 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsFaceup() and tc:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) then
Duel.Recover(tp,rec,REASON_EFFECT) end Duel.Recover(tp,rec,REASON_EFFECT) end
end end
--spsummon
function s.spfilter(c,e,tp) function s.spfilter(c,e,tp)
return c:IsSetCard(0xc9) and not c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xc9) and not c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
......
...@@ -45,7 +45,6 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,6 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end end
end end
--fusion
function s.filter1(c,e) function s.filter1(c,e)
return c:IsAbleToRemove() and not c:IsImmuneToEffect(e) return c:IsAbleToRemove() and not c:IsImmuneToEffect(e)
end end
......
...@@ -27,7 +27,6 @@ function s.initial_effect(c) ...@@ -27,7 +27,6 @@ function s.initial_effect(c)
e3:SetTarget(s.sptg) e3:SetTarget(s.sptg)
e3:SetOperation(s.spop) e3:SetOperation(s.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function s.filter(c) function s.filter(c)
return c:IsRace(RACE_FISH) and c:IsAbleToHand() and not c:IsCode(id) return c:IsRace(RACE_FISH) and c:IsAbleToHand() and not c:IsCode(id)
...@@ -52,7 +51,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +51,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
--spe
function s.costfilter(c) function s.costfilter(c)
return c:IsRace(RACE_FISH) and c:IsAbleToRemoveAsCost() and c:IsFaceupEx() and not c:IsCode(id) return c:IsRace(RACE_FISH) and c:IsAbleToRemoveAsCost() and c:IsFaceupEx() and not c:IsCode(id)
end end
......
...@@ -25,9 +25,7 @@ function s.initial_effect(c) ...@@ -25,9 +25,7 @@ function s.initial_effect(c)
e2:SetTarget(s.spstg) e2:SetTarget(s.spstg)
e2:SetOperation(s.spsop) e2:SetOperation(s.spsop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
--spell
function s.filter1(c) function s.filter1(c)
return c:IsSetCard(0x19b) and c:IsType(TYPE_MONSTER) and not c:IsForbidden() return c:IsSetCard(0x19b) and c:IsType(TYPE_MONSTER) and not c:IsForbidden()
end end
...@@ -55,7 +53,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +53,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
--special
function s.sfilter(c,e,tp) function s.sfilter(c,e,tp)
return c:GetOriginalType()&TYPE_MONSTER>0 and c:GetType()&TYPE_CONTINUOUS+TYPE_SPELL==TYPE_CONTINUOUS+TYPE_SPELL return c:GetOriginalType()&TYPE_MONSTER>0 and c:GetType()&TYPE_CONTINUOUS+TYPE_SPELL==TYPE_CONTINUOUS+TYPE_SPELL
and c:IsFaceup() and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsFaceup() and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -41,7 +41,6 @@ function c30989084.initial_effect(c) ...@@ -41,7 +41,6 @@ function c30989084.initial_effect(c)
e3:SetOperation(s.rmop) e3:SetOperation(s.rmop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
--to hand
function s.filter(c) function s.filter(c)
return c:IsSetCard(0xc9) and c:IsAbleToHand() return c:IsSetCard(0xc9) and c:IsAbleToHand()
end end
...@@ -58,7 +57,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +57,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
--special
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp return ep==tp
end end
...@@ -85,7 +83,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,7 +83,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP,zone) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP,zone)
end end
end end
--remove
function s.cfilter(c,g) function s.cfilter(c,g)
return g:IsContains(c) return g:IsContains(c)
end end
......
...@@ -34,7 +34,6 @@ function s.initial_effect(c) ...@@ -34,7 +34,6 @@ function s.initial_effect(c)
e3:SetOperation(s.damop) e3:SetOperation(s.damop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
--recover
function s.recfilter(c,lg) function s.recfilter(c,lg)
return lg:IsContains(c) return lg:IsContains(c)
end end
...@@ -55,7 +54,6 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +54,6 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Recover(p,d,REASON_EFFECT) Duel.Recover(p,d,REASON_EFFECT)
end end
--damage
function s.damcon(e,tp,eg,ep,ev,re,r,rp) function s.damcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp or 1-tp return ep==tp or 1-tp
end end
...@@ -64,7 +62,7 @@ function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -64,7 +62,7 @@ function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetTargetPlayer(tp and 1-tp) Duel.SetTargetPlayer(tp and 1-tp)
Duel.SetTargetParam(1000) Duel.SetTargetParam(1000)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,PLAYER_ALL,1000) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,PLAYER_ALL,1000)
end end
function s.damop(e,tp,eg,ep,ev,re,r,rp) function s.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(1-tp,1000,REASON_EFFECT,true) Duel.Damage(1-tp,1000,REASON_EFFECT,true)
Duel.Damage(tp,1000,REASON_EFFECT,true) Duel.Damage(tp,1000,REASON_EFFECT,true)
......
...@@ -36,7 +36,6 @@ function s.spcon(e,c) ...@@ -36,7 +36,6 @@ function s.spcon(e,c)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil,TYPE_LINK) and Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil,TYPE_LINK)
end end
--to hand
function s.cfilter(c,tp,se) function s.cfilter(c,tp,se)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsLink(2) and (se==nil or c:GetReasonEffect()~=se) return c:IsPreviousLocation(LOCATION_MZONE) and c:IsLink(2) and (se==nil or c:GetReasonEffect()~=se)
and (c:IsLocation(LOCATION_GRAVE) or (c:IsLocation(LOCATION_REMOVED) and c:IsFaceup())) and c:IsPreviousControler(tp) and (c:IsLocation(LOCATION_GRAVE) or (c:IsLocation(LOCATION_REMOVED) and c:IsFaceup())) and c:IsPreviousControler(tp)
......
...@@ -41,7 +41,6 @@ function s.initial_effect(c) ...@@ -41,7 +41,6 @@ function s.initial_effect(c)
e3:SetOperation(s.spsop) e3:SetOperation(s.spsop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
--move
function s.sumcon(e,tp,eg,ep,ev,re,r,rp) function s.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
...@@ -76,7 +75,6 @@ function s.mvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +75,6 @@ function s.mvop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
--special
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetType()==TYPE_TRAP+TYPE_CONTINUOUS return e:GetHandler():GetType()==TYPE_TRAP+TYPE_CONTINUOUS
end end
......
...@@ -46,7 +46,6 @@ end ...@@ -46,7 +46,6 @@ end
function s.indtg(e,c) function s.indtg(e,c)
return e:GetHandler()==c or c:IsRace(RACE_PLANT) return e:GetHandler()==c or c:IsRace(RACE_PLANT)
end end
--remove
function s.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,2000) end if chk==0 then return Duel.CheckLPCost(tp,2000) end
Duel.PayLPCost(tp,2000) Duel.PayLPCost(tp,2000)
...@@ -69,7 +68,6 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +68,6 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)
end end
end end
--atk up
function s.adcon(e,tp,eg,ep,ev,re,r,rp) function s.adcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and e:GetHandler():IsFaceup() return ep==tp and e:GetHandler():IsFaceup()
end end
......
...@@ -28,8 +28,6 @@ function s.initial_effect(c) ...@@ -28,8 +28,6 @@ function s.initial_effect(c)
e2:SetOperation(s.thop) e2:SetOperation(s.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
--disable
function s.disfilter(c) function s.disfilter(c)
return c:IsType(TYPE_EFFECT) and not c:IsDisabled() return c:IsType(TYPE_EFFECT) and not c:IsDisabled()
end end
......
...@@ -60,7 +60,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +60,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
--todeck
function s.rfilter(c) function s.rfilter(c)
return c:IsLevel(1) and c:IsAbleToDeck() return c:IsLevel(1) and c:IsAbleToDeck()
end end
......
...@@ -39,7 +39,6 @@ function s.initial_effect(c) ...@@ -39,7 +39,6 @@ function s.initial_effect(c)
e4:SetOperation(s.mvop) e4:SetOperation(s.mvop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
--sp
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsReason(REASON_DRAW) return not e:GetHandler():IsReason(REASON_DRAW)
end end
...@@ -53,7 +52,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +52,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end
end end
--th
function s.thfilter(c) function s.thfilter(c)
return c:IsSetCard(0x19c) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0x19c) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end end
...@@ -69,7 +67,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +67,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
--move
function s.filter(c) function s.filter(c)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsType(TYPE_MONSTER) and not c:IsForbidden() return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsType(TYPE_MONSTER) and not c:IsForbidden()
end end
......
...@@ -29,8 +29,6 @@ function s.initial_effect(c) ...@@ -29,8 +29,6 @@ function s.initial_effect(c)
e3:SetOperation(s.ssop) e3:SetOperation(s.ssop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
--spsummon
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
...@@ -52,8 +50,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,8 +50,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
end end
end end
--special summon
function s.ssfilter(c) function s.ssfilter(c)
return c:IsType(TYPE_FLIP) and c:IsFaceupEx() and c:IsAbleToRemoveAsCost() return c:IsType(TYPE_FLIP) and c:IsFaceupEx() and c:IsAbleToRemoveAsCost()
end end
......
...@@ -44,7 +44,6 @@ function s.initial_effect(c) ...@@ -44,7 +44,6 @@ function s.initial_effect(c)
e4:SetLabelObject(e3) e4:SetLabelObject(e3)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
--sp
function s.cfilter(c) function s.cfilter(c)
return c:IsFaceup() and c:IsRace(RACE_FISH) return c:IsFaceup() and c:IsRace(RACE_FISH)
end end
...@@ -62,7 +61,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,7 +61,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end end
--remove
function s.spfilter1(c,e,tp) function s.spfilter1(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLevelBelow(6) and c:IsRace(RACE_FISH) and e:GetHandler():IsAbleToRemove() return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLevelBelow(6) and c:IsRace(RACE_FISH) and e:GetHandler():IsAbleToRemove()
end end
...@@ -101,7 +99,6 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -101,7 +99,6 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
--spsummon
function s.spreg(e,tp,eg,ep,ev,re,r,rp) function s.spreg(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetTurnCount() local ct=Duel.GetTurnCount()
e:SetLabel(ct) e:SetLabel(ct)
......
...@@ -23,9 +23,7 @@ function s.initial_effect(c) ...@@ -23,9 +23,7 @@ function s.initial_effect(c)
e2:SetTarget(s.sptg) e2:SetTarget(s.sptg)
e2:SetOperation(s.spop) e2:SetOperation(s.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
--to spsummon 0x21
function s.condition1(e,tp,eg,ep,ev,re,r,rp) function s.condition1(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return Duel.GetTurnPlayer()==tp and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2) return Duel.GetTurnPlayer()==tp and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2)
...@@ -59,7 +57,6 @@ end ...@@ -59,7 +57,6 @@ end
function s.splimit(e,c) function s.splimit(e,c)
return not (c:IsType(TYPE_SYNCHRO) or c:IsType(TYPE_FUSION)) and c:IsLocation(LOCATION_EXTRA) return not (c:IsType(TYPE_SYNCHRO) or c:IsType(TYPE_FUSION)) and c:IsLocation(LOCATION_EXTRA)
end end
--fusion
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return Duel.IsExistingMatchingCard(nil,tp,LOCATION_FZONE,LOCATION_FZONE,1,nil) return Duel.IsExistingMatchingCard(nil,tp,LOCATION_FZONE,LOCATION_FZONE,1,nil)
......
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