Skip to content
  •  
  •  
  •  
1 change: 1 addition & 0 deletions constant.lua
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ CATEGORY_NEGATE = 0x10000000
CATEGORY_ANNOUNCE = 0x20000000
CATEGORY_FUSION_SUMMON = 0x40000000
CATEGORY_TOEXTRA = 0x80000000
CATEGORY_SET = 0x100000000
--Hints
HINT_EVENT = 1
HINT_MESSAGE = 2
Expand Down
2 changes: 1 addition & 1 deletion official/c10024317.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function s.initial_effect(c)
--destroy and set
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SET)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_PZONE)
Expand Down
2 changes: 1 addition & 1 deletion official/c10110717.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function s.initial_effect(c)
--Special Summon 1 "Mecha Bunny" from your Deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetCondition(s.spcon)
Expand Down
1 change: 1 addition & 0 deletions official/c10136446.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function s.initial_effect(c)
--Set 1 "Darklord" Spell and 1 "Darklord" Trap from your Deck
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,0))
e2:SetCategory(CATEGORY_SET)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
Expand Down
2 changes: 1 addition & 1 deletion official/c10333641.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function s.initial_effect(c)
--Set 1 Spell/Trap frm the opponent's GY to your field
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,0))
e2:SetCategory(CATEGORY_LEAVE_GRAVE)
e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCode(EVENT_FREE_CHAIN)
Expand Down
1 change: 1 addition & 0 deletions official/c10515412.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function s.initial_effect(c)
--Set 1 Spell/Trap from your GY
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_SET)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_DESTROYED)
Expand Down
2 changes: 1 addition & 1 deletion official/c10698416.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function s.initial_effect(c)
--spsummon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e2:SetCode(EVENT_LEAVE_FIELD)
Expand Down
2 changes: 1 addition & 1 deletion official/c109401.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function s.initial_effect(c)
--Banish 1 card from Hand; SS from Banish.
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1,{id,1})
Expand Down
4 changes: 2 additions & 2 deletions official/c11024707.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function s.initial_effect(c)
--Special Summon this card in face-down Defense Position
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_TO_GRAVE)
Expand All @@ -18,7 +18,7 @@ function s.initial_effect(c)
--Special Summon 1 monster sent to your GY face-down
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_CUSTOM+id)
Expand Down
2 changes: 1 addition & 1 deletion official/c11074235.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function s.initial_effect(c)
--Special summon itself from hand or GY
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_TO_GRAVE)
Expand Down
1 change: 1 addition & 0 deletions official/c11443677.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function s.initial_effect(c)
--Set Trap from GY
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(id,0))
e4:SetCategory(CATEGORY_SET)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET)
e4:SetCode(EVENT_DAMAGE_STEP_END)
Expand Down
4 changes: 2 additions & 2 deletions official/c1151281.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function s.initial_effect(c)
--turn set
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,2))
e3:SetCategory(CATEGORY_POSITION)
e3:SetCategory(CATEGORY_POSITION+CATEGORY_SET)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetTarget(s.postg)
Expand Down Expand Up @@ -66,7 +66,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsCanTurnSet() and c:GetFlagEffect(id)==0 end
c:RegisterFlagEffect(id,RESET_EVENT|(RESETS_STANDARD_PHASE_END&~RESET_TURN_SET),0,1)
Duel.SetOperationInfo(0,CATEGORY_POSITION,c,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_POSITION,c,1,tp,POS_FACEDOWN_DEFENSE)
end
function s.posop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Expand Down
2 changes: 1 addition & 1 deletion official/c11522479.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
elseif op==2 then
e:SetCategory(0)
e:SetCategory(CATEGORY_SET)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,tp,LOCATION_GRAVE)
end
end
Expand Down
4 changes: 2 additions & 2 deletions official/c11646785.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function s.initial_effect(c)
--Change 1 monster to face-down Defense Position
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,0))
e2:SetCategory(CATEGORY_POSITION)
e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_MZONE)
Expand Down Expand Up @@ -51,7 +51,7 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
local g=Duel.SelectTarget(tp,Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,0)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE)
end
function s.setop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
Expand Down
2 changes: 1 addition & 1 deletion official/c11677278.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function s.initial_effect(c)
--Special Summon this card to your opponent's field in face-down Defense Position
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_HAND)
e2:SetCountLimit(1,{id,1})
Expand Down
2 changes: 1 addition & 1 deletion official/c11825276.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function s.initial_effect(c)
--Special Summon 1 "Ninja" monster from the Deck
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,0))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_CHAINING)
e3:SetRange(LOCATION_MZONE)
Expand Down
2 changes: 1 addition & 1 deletion official/c1225009.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function s.initial_effect(c)
--Draw 1 card
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,1))
e3:SetCategory(CATEGORY_DRAW+CATEGORY_SPECIAL_SUMMON)
e3:SetCategory(CATEGORY_DRAW+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_LEAVE_FIELD)
Expand Down
4 changes: 2 additions & 2 deletions official/c12467005.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if op==0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
local g=Duel.SelectTarget(tp,aux.FaceupFilter(Card.IsCanTurnSet),tp,0,LOCATION_MZONE,1,1,nil)
e:SetCategory(CATEGORY_POSITION)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
e:SetCategory(CATEGORY_POSITION+CATEGORY_SET)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,s.filter2,tp,0,LOCATION_ONFIELD,1,1,nil)
Expand Down
6 changes: 3 additions & 3 deletions official/c12612470.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function s.initial_effect(c)
--Change all other monsters in this card's column to face-down Defense Position
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(id,1))
e4:SetCategory(CATEGORY_POSITION)
e4:SetCategory(CATEGORY_POSITION+CATEGORY_SET)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(EVENT_MOVE)
e4:SetCountLimit(1,{id,1})
Expand All @@ -55,7 +55,7 @@ end
function s.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local g=e:GetHandler():GetColumnGroup():Filter(s.posfilter,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE)
end
function s.posop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Expand All @@ -64,4 +64,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp)
if #g>0 then
Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE)
end
end
end
2 changes: 1 addition & 1 deletion official/c12678601.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function s.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_TO_GRAVE)
Expand Down
4 changes: 2 additions & 2 deletions official/c12923641.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local s,id=GetID()
function s.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION)
e1:SetCategory(CATEGORY_POSITION+CATEGORY_SET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(s.target)
Expand All @@ -24,7 +24,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
c:SetTurnCounter(0)
local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
Expand Down
2 changes: 1 addition & 1 deletion official/c12930501.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function s.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_LEAVE_GRAVE)
e1:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
Expand Down
4 changes: 2 additions & 2 deletions official/c12975671.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function s.initial_effect(c)
--Add 1 WATER monster with the same Type as the revealed monster, but 1 Level lower, from your Deck to your hand, then you can change this card to face-down Defense Position, also you cannot Special Summon from the Extra Deck for the rest of this turn, except WATER monsters
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_POSITION)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_POSITION+CATEGORY_SET)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,id)
Expand Down Expand Up @@ -51,7 +51,7 @@ end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,e:GetHandler(),1,tp,0)
Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,e:GetHandler(),1,tp,POS_FACEDOWN_DEFENSE)
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Expand Down
2 changes: 1 addition & 1 deletion official/c13204145.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function s.initial_effect(c)
--Reveal 2 Flip monsters to Special Summon or add to the hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id)
Expand Down
2 changes: 1 addition & 1 deletion official/c13386407.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function s.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_RELEASE)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_RELEASE+CATEGORY_SET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH)
Expand Down
4 changes: 2 additions & 2 deletions official/c13409151.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function s.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_POSITION)
e1:SetCategory(CATEGORY_POSITION+CATEGORY_SET)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP)
e1:SetTarget(s.postg)
Expand All @@ -20,7 +20,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE)
end
function s.posop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
Expand Down
2 changes: 1 addition & 1 deletion official/c14087893.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local s,id=GetID()
function s.initial_effect(c)
--Change 1 face-up monster on the field to face-down Defense Position
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION)
e1:SetCategory(CATEGORY_POSITION+CATEGORY_SET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
Expand Down
4 changes: 2 additions & 2 deletions official/c14261867.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function s.initial_effect(c)
--turn set
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_POSITION)
e1:SetCategory(CATEGORY_POSITION+CATEGORY_SET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(s.target)
Expand All @@ -25,7 +25,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsCanTurnSet() and c:GetFlagEffect(id)==0 end
c:RegisterFlagEffect(id,RESET_EVENT|(RESETS_STANDARD_PHASE_END&~RESET_TURN_SET),0,1)
Duel.SetOperationInfo(0,CATEGORY_POSITION,c,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_POSITION,c,1,tp,POS_FACEDOWN_DEFENSE)
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Expand Down
3 changes: 2 additions & 1 deletion official/c14756848.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
--destroy
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCost(Cost.SelfTribute)
Expand Down Expand Up @@ -75,9 +74,11 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
end
e:SetLabel(sel)
if sel==1 then
e:SetCategory(CATEGORY_DESTROY+CATEGORY_SET)
local g=Duel.GetMatchingGroup(s.desfilter1,tp,0,LOCATION_SZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
else
e:SetCategory(CATEGORY_DESTROY)
local g=Duel.GetFieldGroup(tp,0,LOCATION_PZONE)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
Expand Down
1 change: 1 addition & 0 deletions official/c1490690.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function s.initial_effect(c)
--Set itself from the GY
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,1))
e3:SetCategory(CATEGORY_SET)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_TO_GRAVE)
Expand Down
4 changes: 2 additions & 2 deletions official/c14936691.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function s.initial_effect(c)
--position
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,0))
e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCategory(CATEGORY_POSITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
Expand All @@ -29,7 +29,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE)
end
function s.posop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
Expand Down
1 change: 1 addition & 0 deletions official/c1498449.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function s.initial_effect(c)
--Set 1 "Dragontail" Spell/Trap from your Deck
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_SET)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_BE_MATERIAL)
Expand Down
1 change: 1 addition & 0 deletions official/c15171722.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function s.initial_effect(c)
--Set 1 "Evolutionary Bridge" or "Evo-Singularity" from the Deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SUMMON_SUCCESS)
Expand Down
Loading