Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions pre-release/c100442025.lua → official/c29369059.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ function s.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(s.monoppthfilter,tp,LOCATION_MZONE,LOCATION_ONFIELD,nil,e,tp)
local b1=not Duel.HasFlagEffect(tp,id) and #g>=4
and aux.SelectUnselectGroup(g,e,tp,4,4,s.rescon,0)
local b2=not Duel.HasFlagEffect(tp,id+100) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
local b2=not Duel.HasFlagEffect(tp,id+1) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,nil,e,tp)
local b3=not Duel.HasFlagEffect(tp,id+200)
local b3=not Duel.HasFlagEffect(tp,id+2)
and Duel.IsExistingMatchingCard(s.fieldspellthfilter,tp,LOCATION_ONFIELD|LOCATION_GRAVE,0,1,nil)
if chk==0 then return b1 or b2 or b3 end
end
Expand All @@ -45,9 +45,9 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=Duel.GetMatchingGroup(s.monoppthfilter,tp,LOCATION_MZONE,LOCATION_ONFIELD,nil,e,tp)
local b1=not Duel.HasFlagEffect(tp,id) and #g>=4
and aux.SelectUnselectGroup(g,e,tp,4,4,s.rescon,0)
local b2=not Duel.HasFlagEffect(tp,id+100) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
local b2=not Duel.HasFlagEffect(tp,id+1) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,nil,e,tp)
local b3=not Duel.HasFlagEffect(tp,id+200)
local b3=not Duel.HasFlagEffect(tp,id+2)
and Duel.IsExistingMatchingCard(s.fieldspellthfilter,tp,LOCATION_ONFIELD|LOCATION_GRAVE,0,1,nil)
if chk==0 then e:SetLabel(0) return b1 or b2 or b3 end
local op=Duel.SelectEffect(tp,
Expand All @@ -65,12 +65,12 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
elseif op==2 then
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
e:SetProperty(0)
if not cost_skip then Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1) end
if not cost_skip then Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE|PHASE_END,0,1) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_GRAVE)
elseif op==3 then
e:SetCategory(CATEGORY_TOHAND)
e:SetProperty(0)
if not cost_skip then Duel.RegisterFlagEffect(tp,id+200,RESET_PHASE|PHASE_END,0,1) end
if not cost_skip then Duel.RegisterFlagEffect(tp,id+2,RESET_PHASE|PHASE_END,0,1) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_ONFIELD|LOCATION_GRAVE)
end
end
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions pre-release/c100442006.lua → official/c33760966.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetCode(EVENT_CHAINING)
e4:SetOperation(function(e) e:GetHandler():ResetFlagEffect(id+100) end)
e4:SetOperation(function(e) e:GetHandler():ResetFlagEffect(id+1) end)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetCode(EVENT_CHAIN_SOLVED)
Expand Down Expand Up @@ -76,12 +76,12 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ct=eg:FilterCount(Card.IsMonster,nil)
if ct==0 or eg:IsContains(c) then return end
if ct>=2 or c:HasFlagEffect(id+100) then
if ct>=2 or c:HasFlagEffect(id+1) then
Duel.RaiseSingleEvent(c,EVENT_CUSTOM+id,re,r,rp,ep,ev)
end
local eff=Duel.GetChainInfo(0,CHAININFO_TRIGGERING_EFFECT)
if eff then
c:RegisterFlagEffect(id+100,RESET_EVENT|RESETS_STANDARD|RESET_CHAIN,0,1)
c:RegisterFlagEffect(id+1,RESET_EVENT|RESETS_STANDARD|RESET_CHAIN,0,1)
end
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions pre-release/c100442007.lua → official/c79755671.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetCode(EVENT_CHAINING)
e4:SetOperation(function(e) e:GetHandler():ResetFlagEffect(id+100) end)
e4:SetOperation(function(e) e:GetHandler():ResetFlagEffect(id+1) end)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetCode(EVENT_CHAIN_SOLVED)
Expand Down Expand Up @@ -78,12 +78,12 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ct=eg:FilterCount(Card.IsMonster,nil)
if ct==0 or eg:IsContains(c) then return end
if ct>=2 or c:HasFlagEffect(id+100) then
if ct>=2 or c:HasFlagEffect(id+1) then
Duel.RaiseSingleEvent(c,EVENT_CUSTOM+id,re,r,rp,ep,ev)
end
local eff=Duel.GetChainInfo(0,CHAININFO_TRIGGERING_EFFECT)
if eff then
c:RegisterFlagEffect(id+100,RESET_EVENT|RESETS_STANDARD|RESET_CHAIN,0,1)
c:RegisterFlagEffect(id+1,RESET_EVENT|RESETS_STANDARD|RESET_CHAIN,0,1)
end
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.