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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions official/c10045474.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetValue(RESET_TURN_SET)
e2:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e2:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e2)
local pos=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
if c:IsRelateToEffect(e) and pos&POS_FACEDOWN>0 then
Expand Down
2 changes: 1 addition & 1 deletion official/c10140443.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EVENT_PHASE|PHASE_STANDBY)
local reset,reset_ct=RESET_PHASE|PHASE_STANDBY,1
local turn_ct=0
if Duel.GetCurrentPhase()==PHASE_STANDBY then
if Duel.IsPhase(PHASE_STANDBY) then
reset_ct=2
turn_ct=Duel.GetTurnCount()
end
Expand Down
4 changes: 2 additions & 2 deletions official/c10632284.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_RACE)
e1:SetValue(rc)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e1)
end
if tc:IsAttributeExcept(att) then
Expand All @@ -77,7 +77,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_ATTRIBUTE)
e1:SetValue(att)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e1)
end
end
2 changes: 1 addition & 1 deletion official/c10666000.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1,id)
e2:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) end)
e2:SetCondition(function(e) return e:GetHandler():IsXyzSummoned() end)
e2:SetTarget(s.tgtg)
e2:SetOperation(s.tgop)
c:RegisterEffect(e2)
Expand Down
2 changes: 1 addition & 1 deletion official/c10774240.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1,id)
e2:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) end)
e2:SetCondition(function(e) return e:GetHandler():IsRitualSummoned() end)
e2:SetTarget(s.thtg)
e2:SetOperation(s.thop)
c:RegisterEffect(e2)
Expand Down
4 changes: 2 additions & 2 deletions official/c10793085.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(0)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e1)
elseif e:GetLabel()==2 and tc:IsFaceup() then
Duel.NegateRelatedChain(tc,RESET_TURN_SET)
--Negate its effects until the end of this turn
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_DISABLE_EFFECT)
Expand Down
2 changes: 1 addition & 1 deletion official/c10804018.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function s.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,id)
e1:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) end)
e1:SetCondition(function(e) return e:GetHandler():IsRitualSummoned() end)
e1:SetTarget(s.drwtg)
e1:SetOperation(s.drwop)
c:RegisterEffect(e1)
Expand Down
2 changes: 1 addition & 1 deletion official/c12172567.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function s.ctop1(e,tp,eg,ep,ev,re,r,rp)
end
function s.ctcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_SYNCHRO)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSynchroSummoned()
end
function s.cttg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
Expand Down
2 changes: 1 addition & 1 deletion official/c12421694.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function s.naop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END,ct)
e1:SetReset(RESETS_STANDARD_PHASE_END,ct)
tc:RegisterEffect(e1)
end
end
Expand Down
4 changes: 2 additions & 2 deletions official/c12632096.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(4500)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e1)
--Their names become "Neo Galaxy-Eyes Cipher Dragon"
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CHANGE_CODE)
e2:SetValue(id)
e2:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e2:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e2)
end
end
Expand Down
4 changes: 2 additions & 2 deletions official/c12670770.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ function s.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_DECK,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_DECK)
c:RegisterFlagEffect(id,RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END,0,1)
c:RegisterFlagEffect(id,RESETS_STANDARD_PHASE_END,0,1)
c:RegisterFlagEffect(0,RESET_CHAIN,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,0))
end
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return e:GetHandler():GetFlagEffect(id)==0
and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_DECK)
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END,0,1)
e:GetHandler():RegisterFlagEffect(id,RESETS_STANDARD_PHASE_END,0,1)
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetFlagEffect(id)==0 or not e:GetHandler():IsRelateToEffect(e) then return end
Expand Down
2 changes: 1 addition & 1 deletion official/c12890860.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function s.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) end)
e1:SetCondition(function(e) return e:GetHandler():IsFusionSummoned() end)
e1:SetValue(1)
c:RegisterEffect(e1)
--As long as no monsters on your field or GY share an original name with any monster on your opponent's field or GY, monsters you control cannot be destroyed by card effects
Expand Down
2 changes: 1 addition & 1 deletion official/c13291886.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function s.caop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
e1:SetValue(1)
tc:RegisterEffect(e1)
end
Expand Down
2 changes: 1 addition & 1 deletion official/c13302026.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function s.initial_effect(c)
end
function s.spcond(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsSummonType(SUMMON_TYPE_NORMAL) and not c:IsAttack(0)
return c:IsNormalSummoned() and not c:IsAttack(0)
and (Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated())
end
function s.spfilter(c,e,tp)
Expand Down
4 changes: 2 additions & 2 deletions official/c13836592.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function s.initial_effect(c)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetCode(EFFECT_IMMUNE_EFFECT)
e4:SetRange(LOCATION_MZONE)
e4:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL) end)
e4:SetCondition(function(e) return e:GetHandler():IsNormalSummoned() end)
e4:SetValue(s.imnval)
c:RegisterEffect(e4)
--Gain 700 ATK
Expand Down Expand Up @@ -62,7 +62,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.imnval(e,te)
return te:IsMonsterEffect() and te:IsActivated() and te:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
return te:IsMonsterEffect() and te:IsActivated() and te:GetHandler():IsSpecialSummoned()
end
function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Expand Down
2 changes: 1 addition & 1 deletion official/c13935001.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ s.listed_names={13935002} --Lunalight Token
s.listed_series={SET_LUNALIGHT}
--If fusion monster(s) were fusion summoned to your field
function s.cfilter(c,e,tp)
return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsControler(tp) and c:IsSummonType(SUMMON_TYPE_FUSION)
return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsControler(tp) and c:IsFusionSummoned()
and c:IsCanBeEffectTarget(e)
end
--If it ever happened
Expand Down
2 changes: 1 addition & 1 deletion official/c14108995.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ function s.repop(base,e,tp,eg,ep,ev,re,r,rp)
if #{Duel.GetPlayerEffect(tp,CARD_VERNUSYLPH_COROLLA)}>1 then
Duel.HintSelection(c,true)
end
c:RegisterFlagEffect(id,RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,nil,aux.Stringid(id,1))
c:RegisterFlagEffect(id,RESETS_STANDARD_PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,nil,aux.Stringid(id,1))
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end
2 changes: 1 addition & 1 deletion official/c14307929.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function s.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,id)
e1:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and e:GetLabel()==1 end)
e1:SetCondition(function(e) return e:GetHandler():IsSynchroSummoned() and e:GetLabel()==1 end)
e1:SetTarget(s.thtg)
e1:SetOperation(s.thop)
c:RegisterEffect(e1)
Expand Down
2 changes: 1 addition & 1 deletion official/c14529511.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1,{id,1})
e2:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) end)
e2:SetCondition(function(e) return e:GetHandler():IsFusionSummoned() end)
e2:SetCost(s.opccost)
e2:SetTarget(s.tgtg)
e2:SetOperation(s.tgop)
Expand Down
2 changes: 1 addition & 1 deletion official/c15171722.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
end
function s.tgcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsSummonType(SUMMON_TYPE_NORMAL) or (c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:HasFlagEffect(id))
return c:IsSummonType(SUMMON_TYPE_NORMAL) or (c:IsSpecialSummoned() and c:HasFlagEffect(id))
end
function s.tgfilter(c)
return c:IsMonster() and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsRace(RACE_REPTILE|RACE_DINOSAUR) and c:IsAbleToGrave()
Expand Down
2 changes: 1 addition & 1 deletion official/c1528054.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1,id)
e2:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) end)
e2:SetCondition(function(e) return e:GetHandler():IsLinkSummoned() end)
e2:SetTarget(s.settg)
e2:SetOperation(s.setop)
c:RegisterEffect(e2)
Expand Down
2 changes: 1 addition & 1 deletion official/c15613529.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function s.gyspop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTargetRange(0,LOCATION_MZONE)
e1:SetOwnerPlayer(tp)
e1:SetCondition(function(e) return e:GetHandler():IsControler(e:GetOwnerPlayer()) end)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_MUST_ATTACK_MONSTER)
Expand Down
2 changes: 1 addition & 1 deletion official/c16172067.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,id)
e1:SetCondition(function() return Duel.GetCurrentPhase()==PHASE_MAIN1 end)
e1:SetCondition(function() return Duel.IsPhase(PHASE_MAIN1) end)
e1:SetTarget(s.destg)
e1:SetOperation(s.desop)
c:RegisterEffect(e1)
Expand Down
2 changes: 1 addition & 1 deletion official/c16240772.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetRange(LOCATION_MZONE)
e1:SetValue(function(_e,te) return te:IsMonsterEffect() and te:GetOwner()~=_e:GetHandler() end)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e1)
local resetcount=Duel.GetCurrentPhase()<=PHASE_STANDBY and 2 or 1
local prevturn=Duel.GetTurnCount()
Expand Down
2 changes: 1 addition & 1 deletion official/c16699558.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1,{id,0})
e2:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) end)
e2:SetCondition(function(e) return e:GetHandler():IsXyzSummoned() end)
e2:SetTarget(s.negtg)
e2:SetOperation(s.negop)
c:RegisterEffect(e2)
Expand Down
2 changes: 1 addition & 1 deletion official/c16955631.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1,id)
e2:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) end)
e2:SetCondition(function(e) return e:GetHandler():IsXyzSummoned() end)
e2:SetTarget(s.thtg)
e2:SetOperation(s.thop)
c:RegisterEffect(e2)
Expand Down
6 changes: 3 additions & 3 deletions official/c17032740.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE)
end
function s.coincon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1
return Duel.IsPhase(PHASE_MAIN1)
end
function s.cointg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Expand All @@ -55,12 +55,12 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e2:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e2)
end
elseif total_heads==1 then
Expand Down
2 changes: 1 addition & 1 deletion official/c17688543.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if not tc or not tc:IsRelateToEffect(e) then return end
local res=(Duel.GetCurrentPhase()==PHASE_STANDBY and Duel.GetTurnPlayer()==tp) and 2 or 1
local res=(Duel.IsPhase(PHASE_STANDBY) and Duel.GetTurnPlayer()==tp) and 2 or 1
local turn_asc=(Duel.GetCurrentPhase()<PHASE_STANDBY and Duel.GetTurnPlayer()==tp) and 0 or (Duel.GetTurnPlayer()==tp) and 2 or 1
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
Expand Down
2 changes: 1 addition & 1 deletion official/c1769875.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1,{id,0})
e2:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) end)
e2:SetCondition(function(e) return e:GetHandler():IsFusionSummoned() end)
e2:SetTarget(s.regtg)
e2:SetOperation(s.regop)
c:RegisterEffect(e2)
Expand Down
2 changes: 1 addition & 1 deletion official/c18313046.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function s.synop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EXTRA_ATTACK)
e1:SetValue(1)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e1)
end
end
2 changes: 1 addition & 1 deletion official/c18551923.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,0,LOCATION_GRAVE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,s.rmfilter,tp,0,LOCATION_GRAVE,1,1,nil)
if Duel.GetCurrentPhase()==PHASE_STANDBY then
if Duel.IsPhase(PHASE_STANDBY) then
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_STANDBY,EFFECT_FLAG_OATH,2,Duel.GetTurnCount())
else
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_STANDBY,EFFECT_FLAG_OATH,1)
Expand Down
2 changes: 1 addition & 1 deletion official/c18843291.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) end)
e2:SetCondition(function(e) return e:GetHandler():IsSynchroSummoned() end)
e2:SetCountLimit(1,id)
e2:SetTarget(s.tgtg)
e2:SetOperation(s.tgop)
Expand Down
2 changes: 1 addition & 1 deletion official/c18969888.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) end)
e1:SetCondition(function(e) return e:GetHandler():IsSynchroSummoned() end)
e1:SetTarget(s.postg)
e1:SetOperation(s.posop)
c:RegisterEffect(e1)
Expand Down
2 changes: 1 addition & 1 deletion official/c18993198.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_CHANGE_LEVEL_FINAL)
e1:SetValue(lv)
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
e1:SetReset(RESETS_STANDARD_PHASE_END)
tc:RegisterEffect(e1)
end
end
2 changes: 1 addition & 1 deletion official/c19027895.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local atkc=g:Filter(Card.IsLocation,nil,LOCATION_MZONE):GetFirst()
if tc and Duel.SendtoDeck(tc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)>0
and atkc and atkc:IsFaceup() and atkc:IsControler(tp) then
atkc:UpdateAttack(atkc:GetBaseAttack(),RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END,e:GetHandler())
atkc:UpdateAttack(atkc:GetBaseAttack(),RESETS_STANDARD_PHASE_END,e:GetHandler())
end
end
Loading
Loading