Commit 60f1c6a0 authored by wind2009's avatar wind2009

Fix 叛逆者エト

parent 4d414d5d
Pipeline #30607 passed with stages
in 1 minute and 17 seconds
...@@ -53,7 +53,7 @@ merge_databases: ...@@ -53,7 +53,7 @@ merge_databases:
FIELDS: 'name,desc,overallString,picUrl' FIELDS: 'name,desc,overallString,picUrl'
GIT_DEPTH: '1000' GIT_DEPTH: '1000'
OUTPUT_FILENAME: test-release.json OUTPUT_FILENAME: test-release.json
REF_COMMIT: '8.16' # 更新的时候改这里,修改成上一个tag的版本号 REF_COMMIT: '8.17' # 更新的时候改这里,修改成上一个tag的版本号
script: script:
- apt update;apt -y install wget - apt update;apt -y install wget
- currentPath=$PWD - currentPath=$PWD
......
...@@ -140,4 +140,4 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp) ...@@ -140,4 +140,4 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g,0,tp,1-tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,1-tp,false,false,POS_FACEUP)
end end
end end
end end
\ No newline at end of file
...@@ -87,4 +87,4 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,4 +87,4 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(s.desfilter,tp,LOCATION_SZONE,LOCATION_SZONE,nil) local sg=Duel.GetMatchingGroup(s.desfilter,tp,LOCATION_SZONE,LOCATION_SZONE,nil)
Duel.Destroy(sg,REASON_EFFECT) Duel.Destroy(sg,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -115,4 +115,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -115,4 +115,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
tc:RegisterFlagEffect(tc:GetOriginalCode(),RESET_EVENT+RESETS_STANDARD+RESET_DISABLE,0,0) tc:RegisterFlagEffect(tc:GetOriginalCode(),RESET_EVENT+RESETS_STANDARD+RESET_DISABLE,0,0)
end end
end end
\ No newline at end of file
...@@ -71,4 +71,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,4 +71,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterFlagEffect(tc:GetOriginalCode(),RESET_EVENT+RESETS_STANDARD+RESET_DISABLE,0,0) tc:RegisterFlagEffect(tc:GetOriginalCode(),RESET_EVENT+RESETS_STANDARD+RESET_DISABLE,0,0)
end end
end end
end end
\ No newline at end of file
...@@ -18,14 +18,14 @@ function s.initial_effect(c) ...@@ -18,14 +18,14 @@ function s.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon --spsummon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE) e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EFFECT_SPSUMMON_PROC) e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetRange(LOCATION_HAND+LOCATION_GRAVE) e2:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e2:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH) e2:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH)
e2:SetCondition(s.spcon) e2:SetCondition(s.spcon)
e2:SetOperation(s.spop) e2:SetOperation(s.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_DISABLE_SPSUMMON) e3:SetCode(EFFECT_CANNOT_DISABLE_SPSUMMON)
...@@ -92,13 +92,13 @@ function s.cfilter(c) ...@@ -92,13 +92,13 @@ function s.cfilter(c)
and c:IsFaceupEx() and c:IsFaceupEx()
end end
function s.spcon(e,c) function s.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.cfilter,c:GetControler(),0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) and Duel.IsExistingMatchingCard(s.cfilter,c:GetControler(),0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp,c) function s.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.PayLPCost(c:GetOwner(),math.floor(Duel.GetLP(c:GetOwner())/2)) Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
end end
function s.fuslimit(e,c,sumtype) function s.fuslimit(e,c,sumtype)
return sumtype==SUMMON_TYPE_FUSION return sumtype==SUMMON_TYPE_FUSION
...@@ -109,4 +109,4 @@ function s.efilter(e,re) ...@@ -109,4 +109,4 @@ function s.efilter(e,re)
else else
return false return false
end end
end end
\ No newline at end of file
...@@ -107,4 +107,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,4 +107,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local d=Duel.GetFieldGroupCount(e:GetOwnerPlayer(),LOCATION_HAND,0)-(Duel.GetFieldGroupCount(e:GetOwnerPlayer(),0,LOCATION_ONFIELD)+6) local d=Duel.GetFieldGroupCount(e:GetOwnerPlayer(),LOCATION_HAND,0)-(Duel.GetFieldGroupCount(e:GetOwnerPlayer(),0,LOCATION_ONFIELD)+6)
local sg=g:RandomSelect(e:GetOwnerPlayer(),d) local sg=g:RandomSelect(e:GetOwnerPlayer(),d)
Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end end
\ No newline at end of file
...@@ -65,4 +65,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,4 +65,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.HintSelection(sg) Duel.HintSelection(sg)
Duel.SendtoGrave(sg,REASON_EFFECT) Duel.SendtoGrave(sg,REASON_EFFECT)
end end
\ No newline at end of file
...@@ -67,4 +67,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,4 +67,4 @@ function s.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
...@@ -91,4 +91,4 @@ end ...@@ -91,4 +91,4 @@ end
function s.aclimit(e,re,tp) function s.aclimit(e,re,tp)
local loc=re:GetActivateLocation() local loc=re:GetActivateLocation()
return bit.band(loc,LOCATION_ONFIELD)~=0 and re:IsActiveType(TYPE_MONSTER) return bit.band(loc,LOCATION_ONFIELD)~=0 and re:IsActiveType(TYPE_MONSTER)
end end
\ No newline at end of file
...@@ -97,4 +97,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,4 +97,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
end end
end end
\ No newline at end of file
...@@ -84,4 +84,4 @@ function s.indcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,4 +84,4 @@ function s.indcon(e,tp,eg,ep,ev,re,r,rp)
end end
function s.indtg(e,c) function s.indtg(e,c)
return c:IsSetCard(0x1019) return c:IsSetCard(0x1019)
end end
\ No newline at end of file
...@@ -98,4 +98,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -98,4 +98,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.splimit(e,c,sump,sumtype,sumpos,targetp,se) function s.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0x5) return not c:IsSetCard(0x5)
end end
\ No newline at end of file
...@@ -89,4 +89,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,4 +89,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
\ No newline at end of file
...@@ -122,4 +122,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -122,4 +122,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SSet(tp,g:GetFirst()) Duel.SSet(tp,g:GetFirst())
end end
end end
\ No newline at end of file
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