diff --git a/constant.lua b/constant.lua index 361939d58b..ba71e53e38 100644 --- a/constant.lua +++ b/constant.lua @@ -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 diff --git a/official/c10024317.lua b/official/c10024317.lua index f2a61983d6..ae5ddd69f4 100644 --- a/official/c10024317.lua +++ b/official/c10024317.lua @@ -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) diff --git a/official/c10110717.lua b/official/c10110717.lua index 5b7c912eaa..1dd9396894 100644 --- a/official/c10110717.lua +++ b/official/c10110717.lua @@ -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) diff --git a/official/c10136446.lua b/official/c10136446.lua index a73288e72a..7c5de0831a 100644 --- a/official/c10136446.lua +++ b/official/c10136446.lua @@ -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) diff --git a/official/c10333641.lua b/official/c10333641.lua index 5ff1012e00..18fe3a1554 100644 --- a/official/c10333641.lua +++ b/official/c10333641.lua @@ -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) diff --git a/official/c10515412.lua b/official/c10515412.lua index 488dd965c3..2dd0bf114f 100644 --- a/official/c10515412.lua +++ b/official/c10515412.lua @@ -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) diff --git a/official/c10698416.lua b/official/c10698416.lua index 8d577fa799..5ae39896b2 100644 --- a/official/c10698416.lua +++ b/official/c10698416.lua @@ -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) diff --git a/official/c109401.lua b/official/c109401.lua index 21810c3b7b..7a2b02ec66 100644 --- a/official/c109401.lua +++ b/official/c109401.lua @@ -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}) diff --git a/official/c11024707.lua b/official/c11024707.lua index d90018ad38..004d4bea64 100644 --- a/official/c11024707.lua +++ b/official/c11024707.lua @@ -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) @@ -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) diff --git a/official/c11074235.lua b/official/c11074235.lua index a19aca6569..8bf6fea02f 100644 --- a/official/c11074235.lua +++ b/official/c11074235.lua @@ -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) diff --git a/official/c11443677.lua b/official/c11443677.lua index ee24c6fd2a..f24e443eed 100644 --- a/official/c11443677.lua +++ b/official/c11443677.lua @@ -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) diff --git a/official/c1151281.lua b/official/c1151281.lua index 7af97bd4c2..e703667f86 100644 --- a/official/c1151281.lua +++ b/official/c1151281.lua @@ -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) @@ -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() diff --git a/official/c11522479.lua b/official/c11522479.lua index f89745fd94..5ce01be81f 100644 --- a/official/c11522479.lua +++ b/official/c11522479.lua @@ -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 diff --git a/official/c11646785.lua b/official/c11646785.lua index 95ab83277d..9adbc92b7f 100644 --- a/official/c11646785.lua +++ b/official/c11646785.lua @@ -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) @@ -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() diff --git a/official/c11677278.lua b/official/c11677278.lua index 125f850e4e..ba8ba151f1 100644 --- a/official/c11677278.lua +++ b/official/c11677278.lua @@ -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}) diff --git a/official/c11825276.lua b/official/c11825276.lua index 88efdb258a..ee6eec21a1 100644 --- a/official/c11825276.lua +++ b/official/c11825276.lua @@ -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) diff --git a/official/c1225009.lua b/official/c1225009.lua index 3f15919c77..2f13eb20e3 100644 --- a/official/c1225009.lua +++ b/official/c1225009.lua @@ -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) diff --git a/official/c12467005.lua b/official/c12467005.lua index 1631d2fd3a..f2cd69af3b 100644 --- a/official/c12467005.lua +++ b/official/c12467005.lua @@ -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) diff --git a/official/c12612470.lua b/official/c12612470.lua index 2138871558..ba0e49d02b 100644 --- a/official/c12612470.lua +++ b/official/c12612470.lua @@ -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}) @@ -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() @@ -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 \ No newline at end of file diff --git a/official/c12678601.lua b/official/c12678601.lua index cc7642dc7d..1d372bffc0 100644 --- a/official/c12678601.lua +++ b/official/c12678601.lua @@ -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) diff --git a/official/c12923641.lua b/official/c12923641.lua index 0643650c62..af8d51435a 100644 --- a/official/c12923641.lua +++ b/official/c12923641.lua @@ -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) @@ -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) diff --git a/official/c12930501.lua b/official/c12930501.lua index e750fee797..c551739f57 100644 --- a/official/c12930501.lua +++ b/official/c12930501.lua @@ -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) diff --git a/official/c12975671.lua b/official/c12975671.lua index f35ea226ea..d1d0d4b2d8 100644 --- a/official/c12975671.lua +++ b/official/c12975671.lua @@ -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) @@ -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() diff --git a/official/c13204145.lua b/official/c13204145.lua index c8a8c77696..59b41741be 100644 --- a/official/c13204145.lua +++ b/official/c13204145.lua @@ -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) diff --git a/official/c13386407.lua b/official/c13386407.lua index 0261f8046b..8f28f967cc 100644 --- a/official/c13386407.lua +++ b/official/c13386407.lua @@ -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) diff --git a/official/c13409151.lua b/official/c13409151.lua index 866638a123..61cfa4f7b1 100644 --- a/official/c13409151.lua +++ b/official/c13409151.lua @@ -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) @@ -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() diff --git a/official/c14087893.lua b/official/c14087893.lua index 4eb0f33fbf..79f2c0f034 100644 --- a/official/c14087893.lua +++ b/official/c14087893.lua @@ -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) diff --git a/official/c14261867.lua b/official/c14261867.lua index 8ec443f73b..bcc456b6d4 100644 --- a/official/c14261867.lua +++ b/official/c14261867.lua @@ -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) @@ -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() diff --git a/official/c14756848.lua b/official/c14756848.lua index 2889dcc984..40e89dc53d 100644 --- a/official/c14756848.lua +++ b/official/c14756848.lua @@ -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) @@ -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 diff --git a/official/c1490690.lua b/official/c1490690.lua index 9655c33be3..847ad91bfd 100644 --- a/official/c1490690.lua +++ b/official/c1490690.lua @@ -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) diff --git a/official/c14936691.lua b/official/c14936691.lua index 8a45fef523..c69788fed9 100644 --- a/official/c14936691.lua +++ b/official/c14936691.lua @@ -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) @@ -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() diff --git a/official/c1498449.lua b/official/c1498449.lua index 6c73beb688..6992d5c967 100644 --- a/official/c1498449.lua +++ b/official/c1498449.lua @@ -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) diff --git a/official/c15171722.lua b/official/c15171722.lua index 43fb2d8282..60c307deef 100644 --- a/official/c15171722.lua +++ b/official/c15171722.lua @@ -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) diff --git a/official/c15198996.lua b/official/c15198996.lua index 473335d097..1722f6e8db 100644 --- a/official/c15198996.lua +++ b/official/c15198996.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon this card local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SPSUMMON_SUCCESS) @@ -19,7 +19,7 @@ function s.initial_effect(c) --Change a monster to face-up Attack or face-down Defense Position local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_TO_GRAVE) @@ -64,7 +64,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) local g=Duel.SelectTarget(tp,s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEUP_ATTACK|POS_FACEDOWN_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c1528054.lua b/official/c1528054.lua index d8cf6c38a0..5f8498e5b8 100644 --- a/official/c1528054.lua +++ b/official/c1528054.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set 1 Continuous Trap that can Special Summon itself as a monster 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) diff --git a/official/c15306543.lua b/official/c15306543.lua index 6d9ad65433..7a59413e14 100644 --- a/official/c15306543.lua +++ b/official/c15306543.lua @@ -58,7 +58,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) e:SetCategory(CATEGORY_TOHAND) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE|LOCATION_REMOVED) elseif op==2 then - e:SetCategory(0) + e:SetCategory(CATEGORY_SET) end end function s.effop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c15383415.lua b/official/c15383415.lua index 2c558a30c9..bf2fcaccd5 100644 --- a/official/c15383415.lua +++ b/official/c15383415.lua @@ -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) @@ -26,7 +26,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() diff --git a/official/c15710054.lua b/official/c15710054.lua index e288ec6576..711dfe133d 100644 --- a/official/c15710054.lua +++ b/official/c15710054.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) --Special Summon 2 "Krawler" monsters with different names from your Deck 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) diff --git a/official/c15735108.lua b/official/c15735108.lua index 50f7d237b4..4b7419882f 100644 --- a/official/c15735108.lua +++ b/official/c15735108.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Tribute Summon 1 monster local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SUMMON) + e1:SetCategory(CATEGORY_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c15939229.lua b/official/c15939229.lua index 5781335ac7..c9600f08bf 100644 --- a/official/c15939229.lua +++ b/official/c15939229.lua @@ -27,6 +27,7 @@ function s.initial_effect(c) --Set local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetRange(LOCATION_MZONE) diff --git a/official/c15943341.lua b/official/c15943341.lua index d4a2e83032..e9ba8d1ec5 100644 --- a/official/c15943341.lua +++ b/official/c15943341.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_BATTLE_START|TIMING_END_PHASE) diff --git a/official/c15967552.lua b/official/c15967552.lua index 0d8d1fb50e..140cec7ecc 100644 --- a/official/c15967552.lua +++ b/official/c15967552.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 Level 2 or lower monster 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_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER_E|TIMING_MAIN_END) diff --git a/official/c16279989.lua b/official/c16279989.lua index 0de397b3db..ed81527419 100644 --- a/official/c16279989.lua +++ b/official/c16279989.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --turn set 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -37,7 +37,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() diff --git a/official/c16428514.lua b/official/c16428514.lua index 5a122959b2..4e2ef4394b 100644 --- a/official/c16428514.lua +++ b/official/c16428514.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --position local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - 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) @@ -66,7 +66,7 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.setfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,c) g:AddCard(c) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,2,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,2,tp,POS_FACEDOWN_DEFENSE) end function s.setop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() diff --git a/official/c16509093.lua b/official/c16509093.lua index a0725f8dd1..65ff1b71d9 100644 --- a/official/c16509093.lua +++ b/official/c16509093.lua @@ -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) @@ -23,7 +23,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() diff --git a/official/c16719140.lua b/official/c16719140.lua index 43b3be02db..db87890c49 100644 --- a/official/c16719140.lua +++ b/official/c16719140.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --Tribute this card and at least 1 other monster and Special Summon 1 "Subterror" monster local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_RELEASE+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_RELEASE+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_MZONE) @@ -101,4 +101,4 @@ function s.selfspop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end \ No newline at end of file +end diff --git a/official/c16893370.lua b/official/c16893370.lua index 4742870b37..a5ceb09fdb 100644 --- a/official/c16893370.lua +++ b/official/c16893370.lua @@ -69,8 +69,8 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) if op==1 then e:SetCategory(0) elseif op==2 then - e:SetCategory(CATEGORY_POSITION) - Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_ALL,LOCATION_MZONE) + e:SetCategory(CATEGORY_POSITION+CATEGORY_SET) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_ALL,POS_FACEDOWN_DEFENSE) end end function s.effop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c17008760.lua b/official/c17008760.lua index 69df09e82a..382845c3e3 100644 --- a/official/c17008760.lua +++ b/official/c17008760.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) --Detach 1 Xyz material from your monster 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_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c17032740.lua b/official/c17032740.lua index 5743d87a35..1c5cf353d9 100644 --- a/official/c17032740.lua +++ b/official/c17032740.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Fusion Summon Procedure Fusion.AddProcMix(c,true,true,CARD_NEOS,43237273,17732278) Fusion.AddContactProc(c,s.contactfil,s.contactop,s.splimit) - aux.EnableNeosReturn(c,nil,nil,s.retop) + aux.EnableNeosReturn(c,CATEGORY_POSITION+CATEGORY_SET,s.retinfo,s.retop) --Toss a coin 3 times and apply the appropriate effect local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) @@ -32,6 +32,9 @@ end function s.splimit(e,se,sp,st) return not e:GetHandler():IsLocation(LOCATION_EXTRA) end +function s.retinfo(e,tp,eg,ep,ev,re,r,rp) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_ALL,POS_FACEDOWN_DEFENSE) +end function s.retop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE) diff --git a/official/c1712616.lua b/official/c1712616.lua index 775e0d76ae..7dc7fa1873 100644 --- a/official/c1712616.lua +++ b/official/c1712616.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --Set from GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c17185260.lua b/official/c17185260.lua index d2782a33a4..baf03bc0c9 100644 --- a/official/c17185260.lua +++ b/official/c17185260.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --pos 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_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DESTROYING) @@ -22,7 +22,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.filter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.filter,tp,0,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() diff --git a/official/c17475251.lua b/official/c17475251.lua index 21fb0b6401..22f6a8767a 100644 --- a/official/c17475251.lua +++ b/official/c17475251.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --set 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+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_DESTROYED) diff --git a/official/c18716735.lua b/official/c18716735.lua index 1239478404..5b04fc4521 100644 --- a/official/c18716735.lua +++ b/official/c18716735.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) --Destroy target and Set 1 "Metalfoes" Spell/Trap from your Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_PZONE) diff --git a/official/c18940556.lua b/official/c18940556.lua index 5a0c58f4f6..f2f937dae8 100644 --- a/official/c18940556.lua +++ b/official/c18940556.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Destroy 1 monster and change monsters to face-down local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_DESTROY+CATEGORY_POSITION) + e2:SetCategory(CATEGORY_DESTROY+CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_MZONE) @@ -86,7 +86,7 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) else Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,tp,LOCATION_HAND|LOCATION_MZONE) end - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) diff --git a/official/c19041767.lua b/official/c19041767.lua index 4f23531ca7..f4eab7190f 100644 --- a/official/c19041767.lua +++ b/official/c19041767.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) --instant local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SUMMON) + e2:SetCategory(CATEGORY_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetRange(LOCATION_MZONE) e2:SetCode(EVENT_PHASE+PHASE_END) diff --git a/official/c1948619.lua b/official/c1948619.lua index 5443f25960..787fd5ba37 100644 --- a/official/c1948619.lua +++ b/official/c1948619.lua @@ -7,9 +7,10 @@ function s.initial_effect(c) Link.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_HERO),2,2) --set local e1=Effect.CreateEffect(c) - e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) + e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCountLimit(1,id) e1:SetRange(LOCATION_MZONE) diff --git a/official/c19590644.lua b/official/c19590644.lua index 4c1fb16f27..dd398309b1 100644 --- a/official/c19590644.lua +++ b/official/c19590644.lua @@ -5,7 +5,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c19671102.lua b/official/c19671102.lua index 4cb63fa732..9165b40a83 100644 --- a/official/c19671102.lua +++ b/official/c19671102.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --Change position local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_TOGRAVE+CATEGORY_POSITION) + e2:SetCategory(CATEGORY_TOGRAVE+CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_SZONE) e2:SetTarget(s.postg) @@ -38,8 +38,8 @@ end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil,tp) and Duel.IsExistingMatchingCard(s.posfilter,tp,LOCATION_MZONE,0,1,nil) end - Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,0,LOCATION_HAND) - Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,tp,POS_FACEUP_ATTACK|POS_FACEDOWN_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end diff --git a/official/c19739265.lua b/official/c19739265.lua index dd8dcea011..4801fec557 100644 --- a/official/c19739265.lua +++ b/official/c19739265.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Activate 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_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c19942835.lua b/official/c19942835.lua index 36f15d2245..d5fb126386 100644 --- a/official/c19942835.lua +++ b/official/c19942835.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Set self from GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_TODECK+CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_TODECK+CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,id) diff --git a/official/c20065259.lua b/official/c20065259.lua index 15836a3f14..39706a9008 100644 --- a/official/c20065259.lua +++ b/official/c20065259.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 "Ninja" monster 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_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SUMMON_SUCCESS) @@ -23,7 +23,7 @@ function s.initial_effect(c) --Special Summon itself from the GY local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) - e4:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND) + e4:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SET) e4:SetType(EFFECT_TYPE_QUICK_O) e4:SetCode(EVENT_CHAINING) e4:SetRange(LOCATION_GRAVE) diff --git a/official/c2006591.lua b/official/c2006591.lua index 366eba4d51..aaed61d417 100644 --- a/official/c2006591.lua +++ b/official/c2006591.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c20087414.lua b/official/c20087414.lua index 6bfa9ddffa..4d3c5ea11b 100644 --- a/official/c20087414.lua +++ b/official/c20087414.lua @@ -28,7 +28,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) --Set this card in the Spell/Trap Zone and negate activated monster effect local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) - e1:SetCategory(CATEGORY_DISABLE+CATEGORY_TOHAND) + e1:SetCategory(CATEGORY_DISABLE+CATEGORY_TOHAND+CATEGORY_SET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_CHAINING) e1:SetRange(LOCATION_MZONE) diff --git a/official/c20281581.lua b/official/c20281581.lua index a6517cb07f..a8fa49fb36 100644 --- a/official/c20281581.lua +++ b/official/c20281581.lua @@ -33,7 +33,7 @@ function s.initial_effect(c) --Change to face-down local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,2)) - e4:SetCategory(CATEGORY_POSITION) + e4:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e4:SetCode(EVENT_SPSUMMON_SUCCESS) @@ -63,7 +63,7 @@ end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return c:IsCanTurnSet() end - 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() diff --git a/official/c20415050.lua b/official/c20415050.lua index 9fd22c0409..1f32bc3f55 100644 --- a/official/c20415050.lua +++ b/official/c20415050.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Add 1 "Hecahands" monster from your Deck to your hand, then if you sent a card to the GY at activation, you can Set 1 "Hecahands" Spell/Trap from your Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id) diff --git a/official/c20508881.lua b/official/c20508881.lua index af503f1081..09a493e786 100644 --- a/official/c20508881.lua +++ b/official/c20508881.lua @@ -15,6 +15,7 @@ function s.initial_effect(c) --Set this card 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_DESTROYED) diff --git a/official/c20590515.lua b/official/c20590515.lua index 8193dabe6d..24cd955e0f 100644 --- a/official/c20590515.lua +++ b/official/c20590515.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set 1 "Eldlixir" Spell/Trap from the Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c20612097.lua b/official/c20612097.lua index d3bbd427fa..9ab15334cb 100644 --- a/official/c20612097.lua +++ b/official/c20612097.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set 1 "Golden Land" Spell/Trap from your Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c20618081.lua b/official/c20618081.lua index 6c23b11d6c..dfedb00b10 100644 --- a/official/c20618081.lua +++ b/official/c20618081.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Set 1 "Salamangreat" Spell/Trap from your GY 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+EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_TO_GRAVE) diff --git a/official/c21050476.lua b/official/c21050476.lua index 1ff09d8be2..a250026aa2 100644 --- a/official/c21050476.lua +++ b/official/c21050476.lua @@ -30,6 +30,7 @@ function s.initial_effect(c) --Set 1 Continuous Trap from your hand local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) + e4:SetCategory(CATEGORY_SET) e4:SetType(EFFECT_TYPE_IGNITION) e4:SetRange(LOCATION_MZONE) e4:SetCountLimit(1,{id,1}) diff --git a/official/c21607304.lua b/official/c21607304.lua index 1a69e61c75..a707da1f06 100644 --- a/official/c21607304.lua +++ b/official/c21607304.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) --Change this card to face-down Defense Position 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) @@ -77,7 +77,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&~RESET_TURN_SET)|RESET_PHASE|PHASE_END,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() diff --git a/official/c21663205.lua b/official/c21663205.lua index ee7cc95355..e170521a80 100644 --- a/official/c21663205.lua +++ b/official/c21663205.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --spsummon 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_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) diff --git a/official/c22377092.lua b/official/c22377092.lua index 2f0a39a04a..698cb07e6d 100644 --- a/official/c22377092.lua +++ b/official/c22377092.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Destroy 1 Spell/Trap you control, and if you do, Set 1 Normal Trap from your Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c22567609.lua b/official/c22567609.lua index decf25b6c0..30727c26c9 100644 --- a/official/c22567609.lua +++ b/official/c22567609.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --battle destroyed local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_RECOVER+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_RECOVER+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(s.condition) diff --git a/official/c22662014.lua b/official/c22662014.lua index 3eb9d53fd6..63f328d0e8 100644 --- a/official/c22662014.lua +++ b/official/c22662014.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,{id,1}) diff --git a/official/c2266498.lua b/official/c2266498.lua index 0a56f79186..e8a2323963 100644 --- a/official/c2266498.lua +++ b/official/c2266498.lua @@ -4,6 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --special summon local e1=Ritual.CreateProc({handler=c,lvtype=RITPROC_EQUAL,filter=s.cfilter,extrafil=s.extrafil,matfilter=s.filter,forcedselection=s.ritcheck,customoperation=s.customoperation}) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_RELEASE+CATEGORY_SET) e1:SetTarget(s.registerloccount(e1:GetTarget())) e1:SetOperation(s.registerloccount(e1:GetOperation())) c:RegisterEffect(e1) diff --git a/official/c22669793.lua b/official/c22669793.lua index d2d51cd61b..b65e495149 100644 --- a/official/c22669793.lua +++ b/official/c22669793.lua @@ -41,7 +41,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,tp,0) Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,PLAYER_EITHER,LOCATION_MZONE) elseif op==2 then - e:SetCategory(0) + e:SetCategory(CATEGORY_SET) end end function s.effop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c22748199.lua b/official/c22748199.lua index eb6cda549f..4dda28d222 100644 --- a/official/c22748199.lua +++ b/official/c22748199.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --Set itself from GY if a level 5+ WATER monster is normal summoned to your field local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_SPSUMMON_SUCCESS) diff --git a/official/c22812963.lua b/official/c22812963.lua index b6f58ed1f3..37551b5c7e 100644 --- a/official/c22812963.lua +++ b/official/c22812963.lua @@ -20,6 +20,7 @@ function s.initial_effect(c) --Set 1 "Regenesis" Spell/Trap from your Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SPSUMMON_SUCCESS) diff --git a/official/c23002292.lua b/official/c23002292.lua index 5116922980..5f65e7a001 100644 --- a/official/c23002292.lua +++ b/official/c23002292.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --Negate the activation of a Trap Card local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_NEGATE) + e1:SetCategory(CATEGORY_NEGATE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(s.condition) diff --git a/official/c2326738.lua b/official/c2326738.lua index 0d669b4b55..0c15c59ac6 100644 --- a/official/c2326738.lua +++ b/official/c2326738.lua @@ -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) @@ -26,7 +26,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() diff --git a/official/c2339825.lua b/official/c2339825.lua index 98c26aab44..244d75b1a8 100644 --- a/official/c2339825.lua +++ b/official/c2339825.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set itself from GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY,EFFECT_FLAG2_CHECK_SIMULTANEOUS) e2:SetCode(EVENT_REMOVE) diff --git a/official/c2347656.lua b/official/c2347656.lua index c6a81a5ad2..50973e3579 100644 --- a/official/c2347656.lua +++ b/official/c2347656.lua @@ -13,6 +13,7 @@ function s.initial_effect(c) --Set 1 Trap from your GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_MZONE) diff --git a/official/c23611122.lua b/official/c23611122.lua index 609b1dc096..51ee71a7b1 100644 --- a/official/c23611122.lua +++ b/official/c23611122.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --When this card is activated: You can discard 1 card, and if you do, Set 1 Continuous Trap from your Deck or GY, with an effect that Special Summons itself as a monster, except the discarded card local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_HANDES) + e1:SetCategory(CATEGORY_HANDES+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c23898021.lua b/official/c23898021.lua index ff16f146d2..4e39fd1e88 100644 --- a/official/c23898021.lua +++ b/official/c23898021.lua @@ -12,6 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) --search local e2=Effect.CreateEffect(c) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_MZONE) diff --git a/official/c23912837.lua b/official/c23912837.lua index 5409b0d0c3..533a3aeed3 100644 --- a/official/c23912837.lua +++ b/official/c23912837.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 "Shaddoll" monster from your GY in face-up or 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_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -65,7 +65,13 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) {b1,aux.Stringid(id,2)}, {b2,aux.Stringid(id,3)}) e:SetLabel(op) - Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,tp,0) + if op==1 then + e:SetCategory(CATEGORY_POSITION) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,tp,POS_FACEUP_DEFENSE) + elseif op==2 then + e:SetCategory(CATEGORY_POSITION+CATEGORY_SET) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,tp,POS_FACEDOWN_DEFENSE) + end end function s.effop(e,tp,eg,ep,ev,re,r,rp) local op=e:GetLabel() diff --git a/official/c23920796.lua b/official/c23920796.lua index f43ceb9252..f38bb8e22b 100644 --- a/official/c23920796.lua +++ b/official/c23920796.lua @@ -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}) diff --git a/official/c24010609.lua b/official/c24010609.lua index 531e2888c4..badc0f0b6f 100644 --- a/official/c24010609.lua +++ b/official/c24010609.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) --set cards local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_LEAVE_GRAVE) + e3:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_PHASE+PHASE_END) e3:SetRange(LOCATION_SZONE) diff --git a/official/c24096499.lua b/official/c24096499.lua index e340601df2..3b70931191 100644 --- a/official/c24096499.lua +++ b/official/c24096499.lua @@ -5,7 +5,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_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) diff --git a/official/c24101897.lua b/official/c24101897.lua index 00f01a922a..e8b6225933 100644 --- a/official/c24101897.lua +++ b/official/c24101897.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --turn set 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -20,7 +20,7 @@ function s.initial_effect(c) --change pos local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_POSITION) + e3:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetRange(LOCATION_MZONE) @@ -40,7 +40,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() @@ -58,7 +58,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return eg:IsExists(s.filter,1,nil) end Duel.SetTargetCard(eg) local g=eg:Filter(s.filter,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_GHOSTRICK),tp,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler()) then return end diff --git a/official/c24158464.lua b/official/c24158464.lua index 4426c68554..ed944f2a26 100644 --- a/official/c24158464.lua +++ b/official/c24158464.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --search local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_TOGRAVE) + e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_TOGRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCountLimit(1,{id,1}) diff --git a/official/c24413299.lua b/official/c24413299.lua index 56ae451d78..12b64ffac9 100644 --- a/official/c24413299.lua +++ b/official/c24413299.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --announce local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_CONTROL+CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_CONTROL+CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) diff --git a/official/c24425055.lua b/official/c24425055.lua index 8c911901af..523adf58e6 100644 --- a/official/c24425055.lua +++ b/official/c24425055.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --Set 1 Continuous Trap from the hand or GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(s.cost) diff --git a/official/c24635329.lua b/official/c24635329.lua index 89b9d01006..42fbefdcb4 100644 --- a/official/c24635329.lua +++ b/official/c24635329.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) --FLIP: Special summon "Shaddoll" monster from hand 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_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,id) diff --git a/official/c24662957.lua b/official/c24662957.lua index 1a2ff6742e..afc4923e9f 100644 --- a/official/c24662957.lua +++ b/official/c24662957.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Banish 1 monster with 2000 or more ATK local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_REMOVE) + e1:SetCategory(CATEGORY_REMOVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c24839398.lua b/official/c24839398.lua index ac3315f4fa..173140ca9b 100644 --- a/official/c24839398.lua +++ b/official/c24839398.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) --Set 1 Trap from your GY 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_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_BATTLED) e2:SetRange(LOCATION_SZONE) diff --git a/official/c24878656.lua b/official/c24878656.lua index 6ecf0b37c2..dc254a1d03 100644 --- a/official/c24878656.lua +++ b/official/c24878656.lua @@ -69,7 +69,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) {b2,aux.Stringid(id,3)}) e:SetLabel(op) if op==1 then - e:SetCategory(0) + e:SetCategory(CATEGORY_SET) elseif op==2 then e:SetCategory(CATEGORY_DESTROY) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,tp,0) diff --git a/official/c24907044.lua b/official/c24907044.lua index 5d1d8713bf..2e68aa9d37 100644 --- a/official/c24907044.lua +++ b/official/c24907044.lua @@ -38,6 +38,7 @@ function s.initial_effect(c) --set local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,3)) + e4:SetCategory(CATEGORY_SET) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetCode(EVENT_DESTROYED) e4:SetCondition(s.setcon) diff --git a/official/c25137581.lua b/official/c25137581.lua index d26cde9c9f..8e7c1c74e4 100644 --- a/official/c25137581.lua +++ b/official/c25137581.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon this card from your hand in face-down Defense Position local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetRange(LOCATION_HAND) diff --git a/official/c25209168.lua b/official/c25209168.lua index 6cd2a2e8b9..151592b0a0 100644 --- a/official/c25209168.lua +++ b/official/c25209168.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Send all monsters to the GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER_E) diff --git a/official/c2521011.lua b/official/c2521011.lua index 58c361b0b0..adce81247b 100644 --- a/official/c2521011.lua +++ b/official/c2521011.lua @@ -15,6 +15,7 @@ function s.initial_effect(c) --set 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:SetCode(EVENT_SUMMON_SUCCESS) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP) diff --git a/official/c25218587.lua b/official/c25218587.lua index a5a6863770..e36de608fd 100644 --- a/official/c25218587.lua +++ b/official/c25218587.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set itself from the 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_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c25341652.lua b/official/c25341652.lua index 6efd4ccc28..3c02f24c72 100644 --- a/official/c25341652.lua +++ b/official/c25341652.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) --Change a monster to face-down Defense Position 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:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) @@ -36,7 +36,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.posfilter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.posfilter,tp,0,LOCATION_MZONE,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() diff --git a/official/c25629622.lua b/official/c25629622.lua index a56c24a330..1b499dcbea 100644 --- a/official/c25629622.lua +++ b/official/c25629622.lua @@ -32,6 +32,7 @@ function s.initial_effect(c) c:RegisterEffect(e0) --set local e4=Effect.CreateEffect(c) + e4:SetCategory(CATEGORY_SET) e4:SetType(EFFECT_TYPE_IGNITION) e4:SetRange(LOCATION_MZONE) e4:SetCountLimit(1) diff --git a/official/c25643346.lua b/official/c25643346.lua index 810ee7d691..4fc3951fe4 100644 --- a/official/c25643346.lua +++ b/official/c25643346.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Set 1 of your traps, that is banished or in GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c25704359.lua b/official/c25704359.lua index 112d4b94f3..bd85f05b8a 100644 --- a/official/c25704359.lua +++ b/official/c25704359.lua @@ -31,7 +31,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) --Special Summon local e4=Effect.CreateEffect(c) - e4:SetCategory(CATEGORY_SPECIAL_SUMMON) + e4:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetCode(EVENT_DESTROYED) e4:SetRange(LOCATION_SZONE) diff --git a/official/c25926710.lua b/official/c25926710.lua index 7f39be9ff9..7ac2fbce6c 100644 --- a/official/c25926710.lua +++ b/official/c25926710.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) --Mill 5 cards from each Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_DECKDES) + e2:SetCategory(CATEGORY_DECKDES+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c25940932.lua b/official/c25940932.lua index 4aeef6b1ff..e100b7e9f9 100644 --- a/official/c25940932.lua +++ b/official/c25940932.lua @@ -15,6 +15,7 @@ function s.initial_effect(c) --Set this card 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_DESTROYED) diff --git a/official/c26334139.lua b/official/c26334139.lua index 4584418b38..c4c27e1d02 100644 --- a/official/c26334139.lua +++ b/official/c26334139.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Return 1 face-down card to the hand local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_TOHAND) + e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c26585784.lua b/official/c26585784.lua index 5f025871e5..6f28e61f94 100644 --- a/official/c26585784.lua +++ b/official/c26585784.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set 1 "K9" Quick-Play Spell from our GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c26692769.lua b/official/c26692769.lua index 4e01addea6..0c45055b91 100644 --- a/official/c26692769.lua +++ b/official/c26692769.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) --Send 1 monster to the GY and set 1 "Phantom Knights" Spell/Trap local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOGRAVE) + e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) diff --git a/official/c2694423.lua b/official/c2694423.lua index cbdbb2ca1f..8b041b0b80 100644 --- a/official/c2694423.lua +++ b/official/c2694423.lua @@ -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) @@ -26,7 +26,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() diff --git a/official/c26949946.lua b/official/c26949946.lua index 78e8d99bb3..2a8cec33ac 100644 --- a/official/c26949946.lua +++ b/official/c26949946.lua @@ -31,6 +31,7 @@ function s.initial_effect(c) --set local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) + e4:SetCategory(CATEGORY_SET) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e4:SetCode(EVENT_DESTROYED) diff --git a/official/c27170599.lua b/official/c27170599.lua index 246abe730e..f852fd9949 100644 --- a/official/c27170599.lua +++ b/official/c27170599.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_DISABLE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c27268998.lua b/official/c27268998.lua index a72fa6d44f..17f6f5c78f 100644 --- a/official/c27268998.lua +++ b/official/c27268998.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) --Set 1 "Metalmorph" Trap from your Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TODECK) + e1:SetCategory(CATEGORY_TODECK+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,id) diff --git a/official/c27275398.lua b/official/c27275398.lua index e1a5002bcf..9c918a1b18 100644 --- a/official/c27275398.lua +++ b/official/c27275398.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set this card from your GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c27308231.lua b/official/c27308231.lua index cff1252fe0..b32308fc9d 100644 --- a/official/c27308231.lua +++ b/official/c27308231.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set this card from your GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_PHASE|PHASE_BATTLE) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c27420823.lua b/official/c27420823.lua index b69ee9b911..029a96654e 100644 --- a/official/c27420823.lua +++ b/official/c27420823.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) --Add 1 "K9" card from your Deck to your hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) diff --git a/official/c27491571.lua b/official/c27491571.lua index f33a4e9243..6a80247049 100644 --- a/official/c27491571.lua +++ b/official/c27491571.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --turn set 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -37,7 +37,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() diff --git a/official/c27556460.lua b/official/c27556460.lua index 5a106758dc..b0f910a9b5 100644 --- a/official/c27556460.lua +++ b/official/c27556460.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) --Set this card from the GY but banish it when it leaves the field local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_LEAVE_GRAVE) + e3:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetCode(EVENT_FREE_CHAIN) e3:SetRange(LOCATION_GRAVE) diff --git a/official/c27705190.lua b/official/c27705190.lua index 435cb0f31f..fd6395068d 100644 --- a/official/c27705190.lua +++ b/official/c27705190.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) --Special Summon 1 "Krawler" monster from your hand, Deck, or GY to your zone a Link Monster points to 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_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c27781371.lua b/official/c27781371.lua index 9f878abf51..2ca148b553 100644 --- a/official/c27781371.lua +++ b/official/c27781371.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --Change 1 face-up monster your opponent controls to face-down Defense Position 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_QUICK_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c27923575.lua b/official/c27923575.lua index 82303a4bd0..3b51e4983b 100644 --- a/official/c27923575.lua +++ b/official/c27923575.lua @@ -14,6 +14,7 @@ function s.initial_effect(c) --Set up to 2 Normal Traps 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_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c27946124.lua b/official/c27946124.lua index 57eb62f85d..a23fdd8d64 100644 --- a/official/c27946124.lua +++ b/official/c27946124.lua @@ -33,6 +33,7 @@ function s.initial_effect(c) --set local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,0)) + e4:SetCategory(CATEGORY_SET) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetCode(EVENT_PHASE+PHASE_END) e4:SetRange(LOCATION_SZONE) diff --git a/official/c28273805.lua b/official/c28273805.lua index cfb0da2612..6e86132114 100644 --- a/official/c28273805.lua +++ b/official/c28273805.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E) @@ -42,7 +42,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) return b1 or b2 end Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_GRAVE) - Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,0) + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,POS_FACEDOWN_DEFENSE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local b1=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 diff --git a/official/c28369508.lua b/official/c28369508.lua index 144acf17ef..9fb10707ff 100644 --- a/official/c28369508.lua +++ b/official/c28369508.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) --Change battle position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,0)) - e3:SetCategory(CATEGORY_POSITION) + e3:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetCode(EVENT_FREE_CHAIN) e3:SetRange(LOCATION_GRAVE) @@ -89,7 +89,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() diff --git a/official/c28454232.lua b/official/c28454232.lua index f6673423fa..6f16c90884 100644 --- a/official/c28454232.lua +++ b/official/c28454232.lua @@ -28,7 +28,7 @@ function s.initial_effect(c) --Special Summon 1 monster from your hand in face-down Defense Position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_HAND) e3:SetCost(Cost.AND(Cost.SelfReveal,s.spcost)) diff --git a/official/c28506708.lua b/official/c28506708.lua index d02076287d..edb54320f5 100644 --- a/official/c28506708.lua +++ b/official/c28506708.lua @@ -10,7 +10,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_IGNITION) e1:SetCountLimit(1) e1:SetRange(LOCATION_SZONE) diff --git a/official/c28868394.lua b/official/c28868394.lua index 80b6aeaf78..ba48bba4f4 100644 --- a/official/c28868394.lua +++ b/official/c28868394.lua @@ -26,6 +26,7 @@ function s.initial_effect(c) --Set 1 "Hole" normal trap from GY local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetRange(LOCATION_GRAVE) diff --git a/official/c29095457.lua b/official/c29095457.lua index 5d2b9b18b3..bd34c3026d 100644 --- a/official/c29095457.lua +++ b/official/c29095457.lua @@ -19,6 +19,7 @@ function s.initial_effect(c) --Set this card from your GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,{id,1}) diff --git a/official/c29157292.lua b/official/c29157292.lua index a2fe95bd7f..7cf0405ce8 100644 --- a/official/c29157292.lua +++ b/official/c29157292.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) --Set 1 "Metalmorph" Trap from your Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_DRAW) + e2:SetCategory(CATEGORY_DRAW+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c29223325.lua b/official/c29223325.lua index f31905886e..f34ce43249 100644 --- a/official/c29223325.lua +++ b/official/c29223325.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c29570824.lua b/official/c29570824.lua index d340f61229..8ed01b675d 100644 --- a/official/c29570824.lua +++ b/official/c29570824.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) --Special Summon 1 monster from your hand in face-down Defense Position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_HAND) e3:SetCost(Cost.AND(Cost.SelfReveal,s.spcost)) diff --git a/official/c29649320.lua b/official/c29649320.lua index 4993490bb8..6587c79b08 100644 --- a/official/c29649320.lua +++ b/official/c29649320.lua @@ -22,6 +22,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) --Set itself and 1 "Mirror Force" local e3=Effect.CreateEffect(c) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_TO_GRAVE) e3:SetProperty(EFFECT_FLAG_DELAY) diff --git a/official/c29792472.lua b/official/c29792472.lua index 58976e7657..40de3a8c50 100644 --- a/official/c29792472.lua +++ b/official/c29792472.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Negate the activation of an opponent's Spell/Trap Card, and if you do, destroy it local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) - e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c30741503.lua b/official/c30741503.lua index 0ba2f86f56..200443217c 100644 --- a/official/c30741503.lua +++ b/official/c30741503.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Shuffle 1 Machine monster into the Deck and set 1 "Orcust" Spell/Trap local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_TODECK) + e2:SetCategory(CATEGORY_TODECK+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_MZONE) diff --git a/official/c30748475.lua b/official/c30748475.lua index a2f0efa43c..4eb27d7061 100644 --- a/official/c30748475.lua +++ b/official/c30748475.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER_E) @@ -17,7 +17,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) local tg=Duel.GetMatchingGroup(aux.NOT(Card.IsCanTurnSet),tp,LOCATION_MZONE,LOCATION_MZONE,nil) if #tg>0 then Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,tg,#tg,0,0) diff --git a/official/c30929786.lua b/official/c30929786.lua index f9d9bfa4e3..3271f7ffd5 100644 --- a/official/c30929786.lua +++ b/official/c30929786.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1) diff --git a/official/c3137279.lua b/official/c3137279.lua index e39bd66657..5346824313 100644 --- a/official/c3137279.lua +++ b/official/c3137279.lua @@ -19,6 +19,7 @@ function s.initial_effect(c) --Set 1 "Ghoti" Trap that is banished or in the GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_PHASE|PHASE_STANDBY) diff --git a/official/c31588572.lua b/official/c31588572.lua index 69f417ca7f..d40b876f6d 100644 --- a/official/c31588572.lua +++ b/official/c31588572.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Set 1 "Unchained" card from the GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c31759689.lua b/official/c31759689.lua index 27ee0c1884..459b8c5191 100644 --- a/official/c31759689.lua +++ b/official/c31759689.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --Increase its ATK and change a monster to face-down Defense Position local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e1:SetTarget(s.target) @@ -41,7 +41,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) local tc=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,c) Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE,c,1,tp,tc:GetFirst():GetBaseAttack()) - Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,tp,POS_FACEDOWN_DEFENSE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -74,7 +74,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local tc=Duel.SelectTarget(tp,s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,tp,POS_FACEUP_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c31785398.lua b/official/c31785398.lua index 0966591e20..d73441975b 100644 --- a/official/c31785398.lua +++ b/official/c31785398.lua @@ -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:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -21,7 +21,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) 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,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c31809476.lua b/official/c31809476.lua index 712f32531f..9ed455a8d3 100644 --- a/official/c31809476.lua +++ b/official/c31809476.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --Set itself from GY during your End Phase if you control a Psychic Xyz monster local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c31834488.lua b/official/c31834488.lua index e785b9844f..aa617d7c31 100644 --- a/official/c31834488.lua +++ b/official/c31834488.lua @@ -5,7 +5,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:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -27,7 +27,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,2,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,2,2,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,2,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,2,tp,POS_FACEDOWN_DEFENSE) end function s.chkfilter(c,e) return c:IsRelateToEffect(e) and c:IsLocation(LOCATION_MZONE) and c:IsFaceup() diff --git a/official/c31887806.lua b/official/c31887806.lua index 80514d9784..d08c1ce759 100644 --- a/official/c31887806.lua +++ b/official/c31887806.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) --Special Summon 1 "Ninja" monster from the hand 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_IGNITION) e3:SetRange(LOCATION_HAND) e3:SetCountLimit(1,id) diff --git a/official/c32126000.lua b/official/c32126000.lua index b1e32162de..4d5358d1b0 100644 --- a/official/c32126000.lua +++ b/official/c32126000.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Set 1 Trap from your Deck with an effect that equips itself to a monster local e1a=Effect.CreateEffect(c) e1a:SetDescription(aux.Stringid(id,0)) + e1a:SetCategory(CATEGORY_SET) e1a:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1a:SetProperty(EFFECT_FLAG_DELAY) e1a:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c32152870.lua b/official/c32152870.lua index 313d2b9da0..f49f60f35f 100644 --- a/official/c32152870.lua +++ b/official/c32152870.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Return 1 "Primitive Planet Reichphobia" to the hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -37,7 +37,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) local g=Duel.SelectTarget(tp,s.reichfilter,tp,LOCATION_ONFIELD|LOCATION_GRAVE,0,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,tp,g:GetFirst():GetLocation()) - Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,0) + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,POS_FACEDOWN_DEFENSE) end function s.posfilter(c) return c:IsFaceup() and c:IsCanTurnSet() diff --git a/official/c32231618.lua b/official/c32231618.lua index 173710ac67..3ce8daf294 100644 --- a/official/c32231618.lua +++ b/official/c32231618.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Special summon 1 level 3+ flip monster from hand or deck local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetTarget(s.sptg) diff --git a/official/c32335697.lua b/official/c32335697.lua index 83799b59b3..bc8c7ad685 100644 --- a/official/c32335697.lua +++ b/official/c32335697.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Set self from GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_TODECK+CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_TODECK+CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c3248469.lua b/official/c3248469.lua index 87f63deb90..73c7670971 100644 --- a/official/c3248469.lua +++ b/official/c3248469.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --During the End Phase, excavate and Set 1 Trap card local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetRange(LOCATION_MZONE|LOCATION_HAND) diff --git a/official/c32530043.lua b/official/c32530043.lua index 0f94691a57..cd2bc2b8ed 100644 --- a/official/c32530043.lua +++ b/official/c32530043.lua @@ -36,7 +36,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) e:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) elseif op==2 then - e:SetCategory(CATEGORY_SPECIAL_SUMMON) + e:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) end end diff --git a/official/c32549749.lua b/official/c32549749.lua index c47262f039..26aa429e3b 100644 --- a/official/c32549749.lua +++ b/official/c32549749.lua @@ -39,7 +39,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local tc=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE,tc,1,tp,800) else - e:SetCategory(CATEGORY_EQUIP) + e:SetCategory(CATEGORY_EQUIP+CATEGORY_SET) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(id,3)) local tc=Duel.SelectTarget(tp,s.eqcfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,tp):GetFirst() Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,tc,1,tc:GetControler(),0) diff --git a/official/c32588805.lua b/official/c32588805.lua index 45e2ac342e..d90dd27bc9 100644 --- a/official/c32588805.lua +++ b/official/c32588805.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --Your opponent declares either Continuous Spell or Continuous Trap, then you Set 1 card of that type from your 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:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCondition(function(e,tp) return e:GetHandler():IsTributeSummoned() and not Duel.IsExistingMatchingCard(Card.IsSpellTrap,tp,LOCATION_ONFIELD,0,1,nil) end) diff --git a/official/c32759190.lua b/official/c32759190.lua index 81adcffc05..44c61fd624 100644 --- a/official/c32759190.lua +++ b/official/c32759190.lua @@ -26,6 +26,7 @@ function s.initial_effect(c) --Set 1 "Hecahands" Spell/Trap from your 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_CARD_TARGET+EFFECT_FLAG_DELAY) e3:SetCode(EVENT_TO_GRAVE) diff --git a/official/c32785578.lua b/official/c32785578.lua index 13c2e3f538..a1ed4bb02f 100644 --- a/official/c32785578.lua +++ b/official/c32785578.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Negate attack and destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_ATTACK_ANNOUNCE) diff --git a/official/c3287359.lua b/official/c3287359.lua index 811ce09234..6be992f060 100644 --- a/official/c3287359.lua +++ b/official/c3287359.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) --Take 2 "Magical Musket" cards from your hand and/or Deck, including a monster, Special Summon 1 of those monsters, and Set the other card to your opponent's field 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_SPSUMMON_SUCCESS) diff --git a/official/c32875265.lua b/official/c32875265.lua index c08b56b990..acfb302252 100644 --- a/official/c32875265.lua +++ b/official/c32875265.lua @@ -5,8 +5,8 @@ local s,id=GetID() function s.initial_effect(c) --activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c32939238.lua b/official/c32939238.lua index 05cd312306..5db49a5d7c 100644 --- a/official/c32939238.lua +++ b/official/c32939238.lua @@ -31,7 +31,7 @@ function s.initial_effect(c) --Add to hand or Special Summon 1 banished "Ninja" monster local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) - e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON) + e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e4:SetCode(EVENT_TO_GRAVE) diff --git a/official/c33129626.lua b/official/c33129626.lua index 49c5a142b8..4df7fb6696 100644 --- a/official/c33129626.lua +++ b/official/c33129626.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) --Negate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_NEGATE+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_NEGATE+CATEGORY_POSITION+CATEGORY_SET) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_CHAINING) diff --git a/official/c33256280.lua b/official/c33256280.lua index d11f468f4d..55ae51b57c 100644 --- a/official/c33256280.lua +++ b/official/c33256280.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) Pendulum.AddProcedure(c) --destroy and set local e1=Effect.CreateEffect(c) - 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) diff --git a/official/c33391067.lua b/official/c33391067.lua index 9a9835f200..eba6ba4756 100644 --- a/official/c33391067.lua +++ b/official/c33391067.lua @@ -14,6 +14,7 @@ function s.initial_effect(c) --Set itself when you take battle damage local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_BATTLE_DAMAGE) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c33773528.lua b/official/c33773528.lua index de59290ce2..df709d7be1 100644 --- a/official/c33773528.lua +++ b/official/c33773528.lua @@ -22,6 +22,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) --Set 1 "Attraction" Trap that is banished or in the GY local e3=Effect.CreateEffect(c) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_PHASE+PHASE_END) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c33781156.lua b/official/c33781156.lua index 5d92dc2ed7..c75370bf68 100644 --- a/official/c33781156.lua +++ b/official/c33781156.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) --Change 1 face-up monster on the field to face-down Defense Position local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_TO_GRAVE) @@ -67,7 +67,7 @@ function s.postg(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,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,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() diff --git a/official/c34124316.lua b/official/c34124316.lua index 78c482cd74..060bc192e2 100644 --- a/official/c34124316.lua +++ b/official/c34124316.lua @@ -5,7 +5,7 @@ local s,id=GetID() function s.initial_effect(c) --flip local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP) e1:SetTarget(s.target) e1:SetOperation(s.operation) diff --git a/official/c342673.lua b/official/c342673.lua index 5492bc4bb5..9130a1e038 100644 --- a/official/c342673.lua +++ b/official/c342673.lua @@ -25,7 +25,7 @@ function s.initial_effect(c) --Special Summon this card then you can Set 1 Spell/Trap that mentions "Dark Magician" from your Deck local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCode(EVENT_DESTROYED) diff --git a/official/c34853266.lua b/official/c34853266.lua index 18924ebbdb..93b2f07584 100644 --- a/official/c34853266.lua +++ b/official/c34853266.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) --Flip 1 monster face-down 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_SINGLE+EFFECT_TYPE_TRIGGER_F) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_SUMMON_SUCCESS) @@ -31,7 +31,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.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,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 tc=Duel.GetFirstTarget() diff --git a/official/c3496543.lua b/official/c3496543.lua index 1674557f8f..2850be1896 100644 --- a/official/c3496543.lua +++ b/official/c3496543.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c34995106.lua b/official/c34995106.lua index 8743871184..faa14ea2f0 100644 --- a/official/c34995106.lua +++ b/official/c34995106.lua @@ -51,6 +51,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) --Set itself from the GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetRange(LOCATION_GRAVE) diff --git a/official/c3510565.lua b/official/c3510565.lua index 3dd4b4924b..0b758a80c1 100644 --- a/official/c3510565.lua +++ b/official/c3510565.lua @@ -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) @@ -26,7 +26,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() diff --git a/official/c35269904.lua b/official/c35269904.lua index 00d4f38c92..68a87966fe 100644 --- a/official/c35269904.lua +++ b/official/c35269904.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Set 1 Normal Spell/Trap local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c35479109.lua b/official/c35479109.lua index f066c58a0f..f4da41634f 100644 --- a/official/c35479109.lua +++ b/official/c35479109.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Return itself and Set Spell/Traps to the hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOHAND) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c35480699.lua b/official/c35480699.lua index 2f9f3f57c7..1de8ddb69a 100644 --- a/official/c35480699.lua +++ b/official/c35480699.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_POSITION+CATEGORY_DRAW) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_DRAW+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER_E) @@ -15,7 +15,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,nil) diff --git a/official/c35498188.lua b/official/c35498188.lua index 1196e0e42f..4a2accbd70 100644 --- a/official/c35498188.lua +++ b/official/c35498188.lua @@ -15,6 +15,7 @@ function s.initial_effect(c) --set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetCondition(aux.exccon) diff --git a/official/c35550352.lua b/official/c35550352.lua index 983dab2954..f9e9f4a20f 100644 --- a/official/c35550352.lua +++ b/official/c35550352.lua @@ -32,6 +32,7 @@ function s.initial_effect(c) --Set 1 "Vanquish Soul" Trap from your Deck local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_PHASE+PHASE_END) e3:SetRange(LOCATION_FZONE) diff --git a/official/c35552985.lua b/official/c35552985.lua index 8a57216f26..08b9c96a54 100644 --- a/official/c35552985.lua +++ b/official/c35552985.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY,EFFECT_FLAG2_CHECK_SIMULTANEOUS) e2:SetCode(EVENT_DESTROYED) diff --git a/official/c35622739.lua b/official/c35622739.lua index baff78e3c2..15f17ea304 100644 --- a/official/c35622739.lua +++ b/official/c35622739.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Set 1 "Fusion" Continuous Spell local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,id) diff --git a/official/c35778533.lua b/official/c35778533.lua index 5f098abfcf..378ea3ac15 100644 --- a/official/c35778533.lua +++ b/official/c35778533.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c35871958.lua b/official/c35871958.lua index 494438f4cd..6724b31fec 100644 --- a/official/c35871958.lua +++ b/official/c35871958.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) --special summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetRange(LOCATION_MZONE) e2:SetCode(EVENT_ATTACK_ANNOUNCE) diff --git a/official/c359563.lua b/official/c359563.lua index cb9a9cbe40..a724f9ece3 100644 --- a/official/c359563.lua +++ b/official/c359563.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) --pos 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_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetRange(LOCATION_MZONE) @@ -23,7 +23,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return eg:IsExists(s.filter,1,nil,nil,tp) end Duel.SetTargetCard(eg) - Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,#eg,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,#eg,tp,POS_FACEDOWN_DEFENSE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(s.filter,nil,e,tp) diff --git a/official/c36239585.lua b/official/c36239585.lua index 2ff75358b0..e9d58339ce 100644 --- a/official/c36239585.lua +++ b/official/c36239585.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) --Change itself 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -36,7 +36,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&~RESET_TURN_SET)|RESET_PHASE|PHASE_END,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() @@ -59,12 +59,13 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) local tc=Duel.SelectTarget(tp,s.setfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst() if tc:IsMonster() then - e:SetCategory(CATEGORY_SPECIAL_SUMMON) + e:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,tc,1,tp,LOCATION_GRAVE) elseif tc:IsSpellTrap() then - e:SetCategory(0) + e:SetCategory(CATEGORY_SET) Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,tc,1,tp,LOCATION_GRAVE) end + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,POS_FACEDOWN_DEFENSE) end function s.setop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c36346532.lua b/official/c36346532.lua index 9067fa33a6..ab9ddcde9c 100644 --- a/official/c36346532.lua +++ b/official/c36346532.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) --Send 1 Set card on the field to the GY and Set 1 "Paleozoic" Trap card directly from the Deck local e2=Effect.CreateEffect(c) - e2:SetCategory(CATEGORY_TOGRAVE) + e2:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c36577931.lua b/official/c36577931.lua index 54256a85e3..843b21555e 100644 --- a/official/c36577931.lua +++ b/official/c36577931.lua @@ -21,6 +21,7 @@ function s.initial_effect(c) --Set 1 "Stigmatika" Spell/Trap from your GY local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetRange(LOCATION_GRAVE) diff --git a/official/c36591747.lua b/official/c36591747.lua index 1e31f6f900..2816d96ead 100644 --- a/official/c36591747.lua +++ b/official/c36591747.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) aux.AddAttractionEquipProc(c) --You: Change battle position and Set 1 "Attraction" Trap from your GY local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_POSITION) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_SZONE) diff --git a/official/c36894320.lua b/official/c36894320.lua index 996eabbc78..22f6eb92b1 100644 --- a/official/c36894320.lua +++ b/official/c36894320.lua @@ -35,7 +35,7 @@ function s.initial_effect(c) --to deck local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) - e4:SetCategory(CATEGORY_TODECK) + e4:SetCategory(CATEGORY_TODECK+CATEGORY_SET) e4:SetType(EFFECT_TYPE_QUICK_O) e4:SetCode(EVENT_FREE_CHAIN) e4:SetRange(LOCATION_SZONE) diff --git a/official/c37055344.lua b/official/c37055344.lua index d429275da9..ccb63cd4b2 100644 --- a/official/c37055344.lua +++ b/official/c37055344.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) --pos 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_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_SZONE) @@ -58,11 +58,11 @@ function s.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if op==0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.filter1,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_FACEUP_ATTACK|POS_FACEDOWN_DEFENSE) else Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEDOWNDEFENSE) local g=Duel.SelectTarget(tp,s.filter3,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_FACEUP_ATTACK|POS_FACEDOWN_DEFENSE) end end function s.operation(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c37354507.lua b/official/c37354507.lua index 746511c3c5..2f06cd2377 100644 --- a/official/c37354507.lua +++ b/official/c37354507.lua @@ -8,6 +8,7 @@ function s.initial_effect(c) --set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) diff --git a/official/c37445295.lua b/official/c37445295.lua index 701ca75c2f..e6c457f4f5 100644 --- a/official/c37445295.lua +++ b/official/c37445295.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --flip 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_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e1:SetCountLimit(1,id) @@ -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_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c37495766.lua b/official/c37495766.lua index e1e63201e9..405cf58271 100644 --- a/official/c37495766.lua +++ b/official/c37495766.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set up to 4 "Rescue-ACE" Quick-Play Spells / Normal Traps from your Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,{id,1}) diff --git a/official/c37629703.lua b/official/c37629703.lua index 1944f9bbd9..19a5dda11a 100644 --- a/official/c37629703.lua +++ b/official/c37629703.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Set 1 "Labrynth" Spell/Trap from the hand or deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_HAND|LOCATION_MZONE) diff --git a/official/c37706769.lua b/official/c37706769.lua index e0935c29b1..2dd26d9cec 100644 --- a/official/c37706769.lua +++ b/official/c37706769.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) --change position local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) - e1:SetCategory(CATEGORY_POSITION) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) @@ -61,7 +61,7 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return true end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.setfilter,tp,LOCATION_MZONE,LOCATION_MZONE,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.setop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c38363525.lua b/official/c38363525.lua index 9af5708fe3..a391e624c3 100644 --- a/official/c38363525.lua +++ b/official/c38363525.lua @@ -16,8 +16,8 @@ function s.initial_effect(c) c:RegisterEffect(e1) --Set itself from GY local e2=Effect.CreateEffect(c) - e2:SetCategory(CATEGORY_TODECK) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_TODECK+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,id) diff --git a/official/c3841833.lua b/official/c3841833.lua index 7fe3b0bfab..5fedd0b01c 100644 --- a/official/c3841833.lua +++ b/official/c3841833.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --sset local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,id) diff --git a/official/c38436986.lua b/official/c38436986.lua index b23bfd075e..baa6e4c38d 100644 --- a/official/c38436986.lua +++ b/official/c38436986.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Flip 1 monster face-down local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -44,7 +44,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) and Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,aux.FaceupFilter(Card.IsCanTurnSet),tp,0,LOCATION_MZONE,1,1,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) end function s.posop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c39432962.lua b/official/c39432962.lua index 8c4096a40a..a8c26da19e 100644 --- a/official/c39432962.lua +++ b/official/c39432962.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --spsummon 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_DAMAGE_STEP) e1:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c39491690.lua b/official/c39491690.lua index 82ce7c20a6..d78ff8fe5b 100644 --- a/official/c39491690.lua +++ b/official/c39491690.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c39581190.lua b/official/c39581190.lua index c13af8c233..0d1e0d4b63 100644 --- a/official/c39581190.lua +++ b/official/c39581190.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Special Summon 1 "Subterror" monster from your Deck 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) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c39699564.lua b/official/c39699564.lua index c8850a15ab..0d9757159b 100644 --- a/official/c39699564.lua +++ b/official/c39699564.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) diff --git a/official/c39711336.lua b/official/c39711336.lua index a2a6e31997..1ff6b7b8bf 100644 --- a/official/c39711336.lua +++ b/official/c39711336.lua @@ -6,7 +6,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) @@ -39,7 +39,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() diff --git a/official/c39712330.lua b/official/c39712330.lua index be871a54f6..e76c824837 100644 --- a/official/c39712330.lua +++ b/official/c39712330.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) --instant local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SUMMON) + e2:SetCategory(CATEGORY_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetRange(LOCATION_SZONE) e2:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c39752820.lua b/official/c39752820.lua index 1e6a3bb87a..d800bafef2 100644 --- a/official/c39752820.lua +++ b/official/c39752820.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --Set 1 "World Legacy" Spell/Trap from your Deck, but it cannot be activated this turn while you have no "World Legacy" monster in your GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) diff --git a/official/c39761418.lua b/official/c39761418.lua index 5f5f5ab369..255c88e8ba 100644 --- a/official/c39761418.lua +++ b/official/c39761418.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Toss a coin and apply the appropriate effect local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_COIN+CATEGORY_DESTROY) + e2:SetCategory(CATEGORY_COIN+CATEGORY_DESTROY+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetTarget(s.cointg) diff --git a/official/c39900763.lua b/official/c39900763.lua index 37bef392e3..43d7ec7f36 100644 --- a/official/c39900763.lua +++ b/official/c39900763.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(s.target) diff --git a/official/c39931513.lua b/official/c39931513.lua index 85785c4bad..5705a9120a 100644 --- a/official/c39931513.lua +++ b/official/c39931513.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Add 1 "Sangen" Spell/Trap to the hand or Set it to the field local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c39998992.lua b/official/c39998992.lua index a444e0becc..d4de1a43d1 100644 --- a/official/c39998992.lua +++ b/official/c39998992.lua @@ -8,7 +8,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:SetCode(EVENT_LEAVE_FIELD) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) diff --git a/official/c40456412.lua b/official/c40456412.lua index c501500727..7dc69eb388 100644 --- a/official/c40456412.lua +++ b/official/c40456412.lua @@ -58,7 +58,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) e:SetCategory(0) Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE|PHASE_END,0,1) elseif op==3 then - e:SetCategory(0) + e:SetCategory(CATEGORY_SET) Duel.RegisterFlagEffect(tp,id+2,RESET_PHASE|PHASE_END,0,1) end end diff --git a/official/c40659562.lua b/official/c40659562.lua index d8f320bd03..72718dac65 100644 --- a/official/c40659562.lua +++ b/official/c40659562.lua @@ -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) @@ -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() diff --git a/official/c40673853.lua b/official/c40673853.lua index 109f65efdf..07365d3e84 100644 --- a/official/c40673853.lua +++ b/official/c40673853.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) --Change 1 face-up monster your opponent controls to face-down Defense Position 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_QUICK_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c40838625.lua b/official/c40838625.lua index 850e89f22b..d07a0f8251 100644 --- a/official/c40838625.lua +++ b/official/c40838625.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --When opponent's monster declares an attack, change all of their attack position monsters 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:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCondition(s.condition) @@ -21,7 +21,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_MZONE,1,nil) end local g=Duel.GetMatchingGroup(s.filter,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) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_MZONE,nil) diff --git a/official/c41039846.lua b/official/c41039846.lua index 8fb5c975ce..515e404ab6 100644 --- a/official/c41039846.lua +++ b/official/c41039846.lua @@ -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) @@ -32,7 +32,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() diff --git a/official/c41160595.lua b/official/c41160595.lua index 2fd4886770..ba68133cd1 100644 --- a/official/c41160595.lua +++ b/official/c41160595.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_TO_GRAVE) e1:SetCondition(s.setcon) diff --git a/official/c41165831.lua b/official/c41165831.lua index fc8a9e0f46..9efd7d8f7b 100644 --- a/official/c41165831.lua +++ b/official/c41165831.lua @@ -20,6 +20,7 @@ function s.initial_effect(c) --Set 1 "Unchained" Spell/Trap directly from the 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_TO_GRAVE) diff --git a/official/c41215808.lua b/official/c41215808.lua index ace601162e..cbb118a145 100644 --- a/official/c41215808.lua +++ b/official/c41215808.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) --Change all Attack Position to face-down Defense Position local e2=Effect.CreateEffect(c) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetRange(LOCATION_GRAVE) @@ -54,7 +54,7 @@ end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.GetMatchingGroup(s.posfilter,tp,0,LOCATION_MZONE,nil) if chk==0 then return #g>0 end - 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 g=Duel.GetMatchingGroup(s.posfilter,tp,0,LOCATION_MZONE,nil) diff --git a/official/c41255165.lua b/official/c41255165.lua index bca5ce475e..8318a86d77 100644 --- a/official/c41255165.lua +++ b/official/c41255165.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Change 1 of your face-up "Penguin" monsters to face-down local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - 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) @@ -52,7 +52,7 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.setfilter,tp,LOCATION_MZONE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.setfilter,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 --Change 1 of your face-up "Penguin" monsters to face-down function s.setop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c41348446.lua b/official/c41348446.lua index 3d3b68b5f3..6151ce3a84 100644 --- a/official/c41348446.lua +++ b/official/c41348446.lua @@ -31,6 +31,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) + e4:SetCategory(CATEGORY_SET) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetRange(LOCATION_REMOVED) e4:SetCode(EVENT_PHASE|PHASE_STANDBY) diff --git a/official/c41356845.lua b/official/c41356845.lua index 0127b09f01..f9b2c0b7f3 100644 --- a/official/c41356845.lua +++ b/official/c41356845.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_POSITION+CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c41443249.lua b/official/c41443249.lua index 42e2b4fe6c..d8ba187966 100644 --- a/official/c41443249.lua +++ b/official/c41443249.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Flip 1 opponent's Effect Monster face-down local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FREE_CHAIN) @@ -73,7 +73,7 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.setfilter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.setfilter,tp,0,LOCATION_MZONE,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.setop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c41753322.lua b/official/c41753322.lua index e462959973..2c8386b0ac 100644 --- a/official/c41753322.lua +++ b/official/c41753322.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) --Change itself to face-down local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_POSITION) + e3:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_MZONE) e3:SetTarget(s.postg) @@ -32,7 +32,7 @@ function s.initial_effect(c) --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_FLIP_SUMMON_SUCCESS) e4:SetTarget(s.postg2) @@ -70,7 +70,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() @@ -81,7 +81,7 @@ end function s.postg2(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler()) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.posop2(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler()) diff --git a/official/c41803903.lua b/official/c41803903.lua index 0ec11b2658..0ea8e31d09 100644 --- a/official/c41803903.lua +++ b/official/c41803903.lua @@ -14,6 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) --set local e2=Effect.CreateEffect(c) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_DESTROYED) diff --git a/official/c41867019.lua b/official/c41867019.lua index 7153cac08b..b6cbc08d84 100644 --- a/official/c41867019.lua +++ b/official/c41867019.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) --Apply 1 of the 4 different options local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_DRAW+CATEGORY_TOGRAVE+CATEGORY_DAMAGE) + e2:SetCategory(CATEGORY_DRAW+CATEGORY_TOGRAVE+CATEGORY_DAMAGE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_ACTIVATE) e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) diff --git a/official/c41872150.lua b/official/c41872150.lua index 1f209c8d94..f69f95b800 100644 --- a/official/c41872150.lua +++ b/official/c41872150.lua @@ -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) @@ -26,7 +26,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() diff --git a/official/c41924516.lua b/official/c41924516.lua index c561e64115..46075267b5 100644 --- a/official/c41924516.lua +++ b/official/c41924516.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) --Flip all opponent monsters face-down 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_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SPSUMMON_SUCCESS) @@ -34,7 +34,7 @@ end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanTurnSet,tp,0,LOCATION_MZONE,1,nil) end 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) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,0,LOCATION_MZONE,nil) diff --git a/official/c42081767.lua b/official/c42081767.lua index 10f1bfb91e..eff2db5704 100644 --- a/official/c42081767.lua +++ b/official/c42081767.lua @@ -20,6 +20,7 @@ function s.initial_effect(c) --Set 1 of your banished Spells/Traps local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_PHASE|PHASE_STANDBY) diff --git a/official/c42143067.lua b/official/c42143067.lua index 9aefcd73d6..0d6d58e8f2 100644 --- a/official/c42143067.lua +++ b/official/c42143067.lua @@ -5,7 +5,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_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) diff --git a/official/c42149850.lua b/official/c42149850.lua index f91e618f94..062deda65c 100644 --- a/official/c42149850.lua +++ b/official/c42149850.lua @@ -20,6 +20,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) --Set itself from GY local e3=Effect.CreateEffect(c) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetRange(LOCATION_GRAVE) e3:SetCode(EVENT_PHASE+PHASE_END) diff --git a/official/c42201897.lua b/official/c42201897.lua index a421088fbd..20c3754a85 100644 --- a/official/c42201897.lua +++ b/official/c42201897.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Set 1 "Sinful Spoils" Spell/Trap from the GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - 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) diff --git a/official/c42228966.lua b/official/c42228966.lua index 7cba3994b0..5b348888da 100644 --- a/official/c42228966.lua +++ b/official/c42228966.lua @@ -11,6 +11,7 @@ function s.initial_effect(c) --Set 1 "Battlefield Tragedy" from your Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_SZONE) e2:SetCountLimit(1,id) diff --git a/official/c42713844.lua b/official/c42713844.lua index 925b49156e..c375ba3c0b 100644 --- a/official/c42713844.lua +++ b/official/c42713844.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) --Change this card to face-down Defense Position 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) @@ -68,7 +68,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&~RESET_TURN_SET)|RESET_PHASE|PHASE_END,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() diff --git a/official/c42932862.lua b/official/c42932862.lua index f2dcc8d4ac..3e6a6c92b6 100644 --- a/official/c42932862.lua +++ b/official/c42932862.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) --FLIP: Special Summon 1 Flip monster from 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_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,id) @@ -66,7 +66,9 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) {b1,aux.Stringid(id,2)}, {b2,aux.Stringid(id,3)}) e:SetLabel(op) + local category=op==1 and CATEGORY_POSITION or (CATEGORY_POSITION+CATEGORY_SET) local pos=op==1 and POS_FACEUP_DEFENSE or POS_FACEDOWN_DEFENSE + e:SetCategory(category) Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,tp,pos) end function s.posop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c42994702.lua b/official/c42994702.lua index 6aa9d02bf9..b7c575d4a1 100644 --- a/official/c42994702.lua +++ b/official/c42994702.lua @@ -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) @@ -16,7 +16,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.filter(c) return c:IsFacedown() and c:GetSequence()<5 diff --git a/official/c43066927.lua b/official/c43066927.lua index 8fdb725d07..9d734e5645 100644 --- a/official/c43066927.lua +++ b/official/c43066927.lua @@ -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}) diff --git a/official/c43150717.lua b/official/c43150717.lua index f66e6fb0ce..20bf1c0d68 100644 --- a/official/c43150717.lua +++ b/official/c43150717.lua @@ -48,7 +48,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return b1 or b2 end if b1 then e:SetLabel(1) - e:SetCategory(0) + e:SetCategory(CATEGORY_SET) Duel.Hint(HINT_OPSELECTED,1-tp,aux.Stringid(id,1)) elseif b2 then e:SetLabel(2) diff --git a/official/c43338320.lua b/official/c43338320.lua index 4bb8f47603..ebb5172cf2 100644 --- a/official/c43338320.lua +++ b/official/c43338320.lua @@ -33,7 +33,7 @@ function s.initial_effect(c) --Set 1 "Memento" Spell/Trap from your GY to your field local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_LEAVE_GRAVE) + e3:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetCode(EVENT_PHASE+PHASE_END) diff --git a/official/c43434803.lua b/official/c43434803.lua index c79c57298f..d06cfd7b6b 100644 --- a/official/c43434803.lua +++ b/official/c43434803.lua @@ -4,8 +4,8 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(s.target) diff --git a/official/c43748308.lua b/official/c43748308.lua index 0c1f62ca17..746def3244 100644 --- a/official/c43748308.lua +++ b/official/c43748308.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_CHAINING) e2:SetProperty(EFFECT_FLAG_DELAY) diff --git a/official/c43930492.lua b/official/c43930492.lua index 1b5cbdf713..fa04ac0f7b 100644 --- a/official/c43930492.lua +++ b/official/c43930492.lua @@ -28,6 +28,7 @@ function s.initial_effect(c) --set local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,0)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetRange(LOCATION_MZONE) diff --git a/official/c44133040.lua b/official/c44133040.lua index 7bc4e4fb39..ef9a2209e5 100644 --- a/official/c44133040.lua +++ b/official/c44133040.lua @@ -37,6 +37,7 @@ function s.initial_effect(c) --Set itself from the GY local e6=Effect.CreateEffect(c) e6:SetDescription(aux.Stringid(id,1)) + e6:SetCategory(CATEGORY_SET) e6:SetType(EFFECT_TYPE_IGNITION) e6:SetRange(LOCATION_GRAVE) e6:SetCountLimit(1,id) diff --git a/official/c44311445.lua b/official/c44311445.lua index 7f6d4fe0c0..b30bc5d8cc 100644 --- a/official/c44311445.lua +++ b/official/c44311445.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) --Special Summon 1 "Madolche" monster from your Deck in Attack Position or 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_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_TO_DECK) e2:SetRange(LOCATION_MZONE) diff --git a/official/c44482554.lua b/official/c44482554.lua index cd734b7dc4..5a9954b9bf 100644 --- a/official/c44482554.lua +++ b/official/c44482554.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Set 1 "Dragontail" Spell/Trap from your Deck, then you can destroy 1 monster on the field local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_BE_MATERIAL) diff --git a/official/c44640691.lua b/official/c44640691.lua index 1160b8afc7..744d96491c 100644 --- a/official/c44640691.lua +++ b/official/c44640691.lua @@ -20,6 +20,7 @@ function s.initial_effect(c) --set local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_MZONE) e3:SetCountLimit(1,{id,1}) diff --git a/official/c44818.lua b/official/c44818.lua index 67752d0cfa..8631be9c49 100644 --- a/official/c44818.lua +++ b/official/c44818.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) --Tribute 1 of your LIGHT monsters, set 1 "Starry Knight" spell/trap from Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_RELEASE) + e1:SetCategory(CATEGORY_RELEASE+CATEGORY_SET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c44860890.lua b/official/c44860890.lua index b69f291e41..079e6aec45 100644 --- a/official/c44860890.lua +++ b/official/c44860890.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --set 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+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_TO_GRAVE) diff --git a/official/c45112597.lua b/official/c45112597.lua index 825903007b..944b33ddf8 100644 --- a/official/c45112597.lua +++ b/official/c45112597.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --Banish all monsters on the field, then Special Summon as many monsters as possible that were banished by this effect, to their owners' fields, face-up, or in face-down Defense Position local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) diff --git a/official/c45159319.lua b/official/c45159319.lua index f1b4b31a08..14aba6b26e 100644 --- a/official/c45159319.lua +++ b/official/c45159319.lua @@ -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) @@ -16,7 +16,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() diff --git a/official/c45702014.lua b/official/c45702014.lua index 2acb09e97b..1546936345 100644 --- a/official/c45702014.lua +++ b/official/c45702014.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --spsummon 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_QUICK_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -60,7 +60,7 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.setfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.setfilter,tp,LOCATION_MZONE,LOCATION_MZONE,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.setop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c45702357.lua b/official/c45702357.lua index 1ec8343868..861f82ee39 100644 --- a/official/c45702357.lua +++ b/official/c45702357.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) --Change this card, also any monsters in its column, to face-down Defense Position local e2a=Effect.CreateEffect(c) e2a:SetDescription(aux.Stringid(id,1)) - e2a:SetCategory(CATEGORY_POSITION) + e2a:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2a:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e2a:SetCode(EVENT_SUMMON_SUCCESS) e2a:SetCountLimit(1,{id,1}) @@ -41,7 +41,7 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_ALL,LOCATION_MZONE) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_ALL,POS_FACEDOWN_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() diff --git a/official/c45803070.lua b/official/c45803070.lua index 4eef20bd71..8e680b51b1 100644 --- a/official/c45803070.lua +++ b/official/c45803070.lua @@ -23,6 +23,7 @@ function s.initial_effect(c) --set 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:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) diff --git a/official/c45935145.lua b/official/c45935145.lua index dfad14c7fd..e5cf1065bc 100644 --- a/official/c45935145.lua +++ b/official/c45935145.lua @@ -62,11 +62,19 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end if chk==0 then return true end local op=e:GetLabel() - local categ=CATEGORY_TODECK local tc=Duel.GetFirstTarget() - if op==2 then categ=tc:IsMonster() and CATEGORY_SPECIAL_SUMMON or CATEGORY_LEAVE_GRAVE end - e:SetCategory(categ) - Duel.SetOperationInfo(0,categ,tc,1,tp,0) + if op==1 then + e:SetCategory(CATEGORY_TODECK) + Duel.SetOperationInfo(0,CATEGORY_TODECK,tc,1,tp,0) + elseif op==2 then + local categ=CATEGORY_SET|CATEGORY_LEAVE_GRAVE + if tc:IsMonster() then + e:SetCategory(CATEGORY_SPECIAL_SUMMON|categ) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,tc,1,tp,0) + else + e:SetCategory(categ) + end + end end function s.effop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c4599182.lua b/official/c4599182.lua index a08e10c1d0..cf2ccff5ac 100644 --- a/official/c4599182.lua +++ b/official/c4599182.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --Set itself from GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e2:SetCode(EVENT_LEAVE_FIELD) diff --git a/official/c46044841.lua b/official/c46044841.lua index 7efecd8928..921b137be8 100644 --- a/official/c46044841.lua +++ b/official/c46044841.lua @@ -5,7 +5,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_DAMAGE_STEP) e1:SetCode(EVENT_TO_GRAVE) diff --git a/official/c46083111.lua b/official/c46083111.lua index 1595198232..b6da09a087 100644 --- a/official/c46083111.lua +++ b/official/c46083111.lua @@ -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) diff --git a/official/c46148485.lua b/official/c46148485.lua index d092bd104a..26c884da61 100644 --- a/official/c46148485.lua +++ b/official/c46148485.lua @@ -33,6 +33,7 @@ function s.initial_effect(c) --Set 1 "Book of Taiyou" and/or 1 "Book of Moon" from your Deck and/or GY local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_MZONE) e3:SetCountLimit(1,{id,1}) diff --git a/official/c46290741.lua b/official/c46290741.lua index cf47efee71..26430cca3c 100644 --- a/official/c46290741.lua +++ b/official/c46290741.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --search local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_SPSUMMON_SUCCESS) diff --git a/official/c46412900.lua b/official/c46412900.lua index 269efe9052..8a419eb511 100644 --- a/official/c46412900.lua +++ b/official/c46412900.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) --Inflict 500 damage to your opponent for each banished Pyro monsters local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_DAMAGE) + e1:SetCategory(CATEGORY_DAMAGE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL+1) end) diff --git a/official/c46497537.lua b/official/c46497537.lua index 466093e93d..b009ed9fee 100644 --- a/official/c46497537.lua +++ b/official/c46497537.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set itself if the LPs are equal local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,id) diff --git a/official/c46925518.lua b/official/c46925518.lua index b6a96c8d97..ae636c83e3 100644 --- a/official/c46925518.lua +++ b/official/c46925518.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --Change itself to face-down 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) --Special Summon 1 "Ghostrick" monster from the deck local e3=Effect.CreateEffect(c) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetCode(EVENT_FLIP) e3:SetOperation(s.fdtg) @@ -37,7 +37,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() @@ -47,7 +47,7 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) end function s.fdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,0,PLAYER_ALL,LOCATION_MZONE) + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_ALL,POS_FACEDOWN_DEFENSE) Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) end function s.fdop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c47111934.lua b/official/c47111934.lua index bb197a2724..933c53f9e5 100644 --- a/official/c47111934.lua +++ b/official/c47111934.lua @@ -5,7 +5,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_IGNITION) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.spcon) diff --git a/official/c47126872.lua b/official/c47126872.lua index a683d2dc48..b541ad87e2 100644 --- a/official/c47126872.lua +++ b/official/c47126872.lua @@ -15,6 +15,7 @@ function s.initial_effect(c) --set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e2:SetCode(EVENT_LEAVE_FIELD) e2:SetCondition(s.setcon) diff --git a/official/c47556396.lua b/official/c47556396.lua index 9c44597092..5f273fdfcd 100644 --- a/official/c47556396.lua +++ b/official/c47556396.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) --Change this card to face-down Defense Position 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) @@ -79,7 +79,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() diff --git a/official/c47766694.lua b/official/c47766694.lua index c94a5973a7..e0665c61f0 100644 --- a/official/c47766694.lua +++ b/official/c47766694.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --Destroy 1 face-up card in the Spell/Trap Zone local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c48048590.lua b/official/c48048590.lua index 06a6c8c97b..12baa552e2 100644 --- a/official/c48048590.lua +++ b/official/c48048590.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) --Special Summon from your GY 1 of the Fusion Materials mentioned on a monster in the Extra Deck, in face-down Defense Position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_MZONE) e3:SetCountLimit(1,{id,1}) diff --git a/official/c48086335.lua b/official/c48086335.lua index 12d40c2f74..0a9db19c37 100644 --- a/official/c48086335.lua +++ b/official/c48086335.lua @@ -21,6 +21,7 @@ function s.initial_effect(c) --sset 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:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET) diff --git a/official/c48468330.lua b/official/c48468330.lua index ed002a043d..92f0e61e43 100644 --- a/official/c48468330.lua +++ b/official/c48468330.lua @@ -5,7 +5,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_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetCode(EVENT_TO_GRAVE) @@ -52,4 +52,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT) end -end \ No newline at end of file +end diff --git a/official/c48497555.lua b/official/c48497555.lua index 210d6da4d8..ed23c93903 100644 --- a/official/c48497555.lua +++ b/official/c48497555.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCountLimit(1,id) diff --git a/official/c48745395.lua b/official/c48745395.lua index c69457768c..0aa28272f4 100644 --- a/official/c48745395.lua +++ b/official/c48745395.lua @@ -19,6 +19,7 @@ function s.initial_effect(c) --Set 1 Normal Trap (Attack Declaration Only) from 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_SPSUMMON_SUCCESS) diff --git a/official/c49451215.lua b/official/c49451215.lua index 00b5102437..3fdd64bb38 100644 --- a/official/c49451215.lua +++ b/official/c49451215.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) --Set 1 Quick-Play Spell from your GY 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_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_SPSUMMON_SUCCESS) diff --git a/official/c494922.lua b/official/c494922.lua index c88917c289..7ad6837e76 100644 --- a/official/c494922.lua +++ b/official/c494922.lua @@ -15,6 +15,7 @@ function s.initial_effect(c) --Set 1 spell/trap from opponent's GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c49513164.lua b/official/c49513164.lua index c7dbbd7369..c4ab197999 100644 --- a/official/c49513164.lua +++ b/official/c49513164.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) --position 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_QUICK_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -27,7 +27,7 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.setfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.setfilter,tp,LOCATION_MZONE,LOCATION_MZONE,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.setop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c49729312.lua b/official/c49729312.lua index 8fc250be34..18f18191b4 100644 --- a/official/c49729312.lua +++ b/official/c49729312.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) --Special summon itself from the hand local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c49904658.lua b/official/c49904658.lua index 6a936f2622..f0602c3005 100644 --- a/official/c49904658.lua +++ b/official/c49904658.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Set 1 Continuous Spell from your Deck, but send it to the GY during your opponent's End Phase local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOGRAVE) + e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) diff --git a/official/c50237654.lua b/official/c50237654.lua index ccaa3c4b4e..b0134058a4 100644 --- a/official/c50237654.lua +++ b/official/c50237654.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) --Draw 1 card and Set it if it is a Spell/Trap card local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_DRAW) + e1:SetCategory(CATEGORY_DRAW+CATEGORY_SET) e1:SetCode(EVENT_CHAINING) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_MZONE) diff --git a/official/c50243722.lua b/official/c50243722.lua index ccd51d2a35..488dfcc9ba 100644 --- a/official/c50243722.lua +++ b/official/c50243722.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c50415441.lua b/official/c50415441.lua index bda46cefc1..d8123186da 100644 --- a/official/c50415441.lua +++ b/official/c50415441.lua @@ -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}) diff --git a/official/c50486289.lua b/official/c50486289.lua index 6f23885b7c..f138a38bea 100644 --- a/official/c50486289.lua +++ b/official/c50486289.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set 1 "Amazoness" Spell/Trap or "Polymerization" 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_SUMMON_SUCCESS) diff --git a/official/c5063379.lua b/official/c5063379.lua index 877f352cc7..d0092cf99d 100644 --- a/official/c5063379.lua +++ b/official/c5063379.lua @@ -34,6 +34,7 @@ function s.initial_effect(c) --Set 1 "Gladiator" Trap from your Deck local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_PHASE+PHASE_END) e3:SetRange(LOCATION_FZONE) diff --git a/official/c50699850.lua b/official/c50699850.lua index 4bdecb0682..31007078ad 100644 --- a/official/c50699850.lua +++ b/official/c50699850.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e2:SetCode(EVENT_RELEASE) diff --git a/official/c50766506.lua b/official/c50766506.lua index 282eed7fed..d693580415 100644 --- a/official/c50766506.lua +++ b/official/c50766506.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Tribute 1 "Ninja" and Special Summon "Ninja" monsters from the Deck local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER_E) diff --git a/official/c50838440.lua b/official/c50838440.lua index 1175f8e1c5..feb467c933 100644 --- a/official/c50838440.lua +++ b/official/c50838440.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set 1 appropriate Spell/Trap from your hand or Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c50947142.lua b/official/c50947142.lua index 5657df59ff..dfa1e03b17 100644 --- a/official/c50947142.lua +++ b/official/c50947142.lua @@ -5,7 +5,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_NEGATE) + e1:SetCategory(CATEGORY_NEGATE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c51023024.lua b/official/c51023024.lua index 3d1cbe7fae..651a180d8d 100644 --- a/official/c51023024.lua +++ b/official/c51023024.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --special summon (any pos) 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_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,id) @@ -16,7 +16,7 @@ function s.initial_effect(c) --special summon (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_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c51073802.lua b/official/c51073802.lua index 543df43310..2d3f5dea77 100644 --- a/official/c51073802.lua +++ b/official/c51073802.lua @@ -33,7 +33,7 @@ function s.initial_effect(c) --Set 1 "Majespecter" Spell local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) - e4:SetCategory(CATEGORY_LEAVE_GRAVE) + e4:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e4:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c51196805.lua b/official/c51196805.lua index 280e13d769..65d530613d 100644 --- a/official/c51196805.lua +++ b/official/c51196805.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --turn set 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -39,7 +39,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() diff --git a/official/c51205763.lua b/official/c51205763.lua index 2c741ad106..4513277c44 100644 --- a/official/c51205763.lua +++ b/official/c51205763.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --flip 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_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,id) @@ -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) diff --git a/official/c51339637.lua b/official/c51339637.lua index cd4fe65182..63e77718ce 100644 --- a/official/c51339637.lua +++ b/official/c51339637.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set itself from GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_SPSUMMON_SUCCESS) diff --git a/official/c51474037.lua b/official/c51474037.lua index c956e06042..5c639bc531 100644 --- a/official/c51474037.lua +++ b/official/c51474037.lua @@ -38,9 +38,9 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) {b1,aux.Stringid(id,1)}, {b2,aux.Stringid(id,2)}) if op==1 then - e:SetCategory(CATEGORY_POSITION) + e:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e:SetLabelObject(nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,tg,2,tp,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,tg,2,tp,POS_FACEDOWN_DEFENSE) elseif op==2 then e:SetCategory(CATEGORY_DESTROY+CATEGORY_ATKCHANGE) e:SetLabelObject(self_g:GetFirst()) diff --git a/official/c51612489.lua b/official/c51612489.lua index 4dab1ae512..22e8f64ed5 100644 --- a/official/c51612489.lua +++ b/official/c51612489.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Return 1 face-down Defense Position monster on the field to the hand, then the player who added it to their hand can Special Summon 1 monster from their hand in face-down Defense Position local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c52158283.lua b/official/c52158283.lua index 0e2bfa1980..d575991f0c 100644 --- a/official/c52158283.lua +++ b/official/c52158283.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --adchange 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_IGNITION) e1:SetRange(LOCATION_GRAVE) @@ -23,7 +23,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEUP_DEFENSE|POS_FACEDOWN_DEFENSE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c5220687.lua b/official/c5220687.lua index 640fc5793b..a640f5d7b8 100644 --- a/official/c5220687.lua +++ b/official/c5220687.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --flip 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_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetTarget(s.target) diff --git a/official/c52240819.lua b/official/c52240819.lua index b9bb0ef941..6b60c7eb79 100644 --- a/official/c52240819.lua +++ b/official/c52240819.lua @@ -30,6 +30,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) --set local e4=Effect.CreateEffect(c) + e4:SetCategory(CATEGORY_SET) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetCode(EVENT_BATTLE_DESTROYING) e4:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c52323207.lua b/official/c52323207.lua index f850b93939..8b7af6204e 100644 --- a/official/c52323207.lua +++ b/official/c52323207.lua @@ -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) @@ -26,7 +26,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() diff --git a/official/c52382379.lua b/official/c52382379.lua index ef9f31de52..248e83ba55 100644 --- a/official/c52382379.lua +++ b/official/c52382379.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set 1 "Nemleria" Trap from your Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,{id,1}) diff --git a/official/c52553102.lua b/official/c52553102.lua index a5b3eff92a..3edff28dcb 100644 --- a/official/c52553102.lua +++ b/official/c52553102.lua @@ -9,6 +9,7 @@ function s.initial_effect(c) --Set 1 "Jurrac" Spell/Trap from your Deck or GY 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_SPSUMMON_SUCCESS) diff --git a/official/c52709508.lua b/official/c52709508.lua index 58e56ecc2b..e64d8fb717 100644 --- a/official/c52709508.lua +++ b/official/c52709508.lua @@ -64,7 +64,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) --Special Summon a LIGHT monster from the GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) diff --git a/official/c53143898.lua b/official/c53143898.lua index d420bd8d30..d7efcd0cc1 100644 --- a/official/c53143898.lua +++ b/official/c53143898.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --Set 1 "Altergeist" Trap 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:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(s.settg) diff --git a/official/c53212882.lua b/official/c53212882.lua index 3f0085d5ef..aa39950b56 100644 --- a/official/c53212882.lua +++ b/official/c53212882.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) --Flip opponent monsters face-down local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_POSITION) + e3:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetCode(EVENT_FREE_CHAIN) e3:SetRange(LOCATION_MZONE) @@ -74,7 +74,7 @@ end function s.fdtg(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.GetMatchingGroup(s.fdfilter,tp,0,LOCATION_MZONE,nil) if chk==0 then return #g>0 end - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.fdop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.fdfilter,tp,0,LOCATION_MZONE,nil) diff --git a/official/c53323475.lua b/official/c53323475.lua index af063ffa0d..9ab35a9ae4 100644 --- a/official/c53323475.lua +++ b/official/c53323475.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c53329234.lua b/official/c53329234.lua index 0925b29fee..524eda073d 100644 --- a/official/c53329234.lua +++ b/official/c53329234.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Change 1 Special Summoned monster to face-down position 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_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) @@ -36,7 +37,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,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() diff --git a/official/c53620899.lua b/official/c53620899.lua index 138a46debb..b373a47d1a 100644 --- a/official/c53620899.lua +++ b/official/c53620899.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) --turn set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -37,7 +37,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() diff --git a/official/c53753697.lua b/official/c53753697.lua index 9a4000ef74..31d92f59f3 100644 --- a/official/c53753697.lua +++ b/official/c53753697.lua @@ -24,6 +24,7 @@ function s.initial_effect(c) --Set 1 "Metalmorph" Trap from your Deck local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_MZONE) e3:SetCountLimit(1,{id,1}) diff --git a/official/c53770666.lua b/official/c53770666.lua index 8416cdc13b..beb50f64fe 100644 --- a/official/c53770666.lua +++ b/official/c53770666.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) --Special Summon "Armament Reincarnation Tokens" (Warrior/LIGHT/Level 1/ATK 500/DEF 500) up to the number of Equip Spells, and Traps with an effect that equip themselves to a monster, in your GY, then you can destroy as many cards in your Spell & Trap Zone as possible, including this card, then Set as many Equip Spells, and Traps with an effect that equip themselves to a monster, as possible from your GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN+CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN+CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(s.target) diff --git a/official/c53792930.lua b/official/c53792930.lua index a5327125f5..59bfe8dfa8 100644 --- a/official/c53792930.lua +++ b/official/c53792930.lua @@ -19,6 +19,7 @@ function s.initial_effect(c) --Set this card from your GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_PHASE|PHASE_BATTLE) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c5380979.lua b/official/c5380979.lua index 8a100b7492..9e4d95a13d 100644 --- a/official/c5380979.lua +++ b/official/c5380979.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Set itself if a monster leaves the field due to a Normal Trap's effect local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_LEAVE_FIELD) diff --git a/official/c53813120.lua b/official/c53813120.lua index 23270234fc..c618ad9e00 100644 --- a/official/c53813120.lua +++ b/official/c53813120.lua @@ -38,6 +38,7 @@ function s.initial_effect(c) --Set this card if it is destroyed by the effect of "Mystical Space Typhoon" local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCode(EVENT_DESTROYED) diff --git a/official/c54265980.lua b/official/c54265980.lua index 16c81cf4a4..90d68b61ad 100644 --- a/official/c54265980.lua +++ b/official/c54265980.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Set 1 "DoomZ" Spell/Trap directly from your Deck local e1a=Effect.CreateEffect(c) e1a:SetDescription(aux.Stringid(id,0)) + e1a:SetCategory(CATEGORY_SET) e1a:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1a:SetProperty(EFFECT_FLAG_DELAY) e1a:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c54490275.lua b/official/c54490275.lua index f66a91beed..a7435cf362 100644 --- a/official/c54490275.lua +++ b/official/c54490275.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --Change itself 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -20,7 +20,7 @@ function s.initial_effect(c) --Monster that destroyed this card in battle is changed to face-down defense position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_POSITION) + e3:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_BATTLE_DESTROYED) e3:SetCondition(s.poscon2) @@ -39,7 +39,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() @@ -55,7 +55,7 @@ function s.postg2(e,tp,eg,ep,ev,re,r,rp,chk) local rc=e:GetHandler():GetReasonCard() if chk==0 then return rc:IsCanTurnSet() end Duel.SetTargetCard(rc) - Duel.SetOperationInfo(0,CATEGORY_POSITION,rc,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,rc,1,tp,POS_FACEDOWN_DEFENSE) end function s.posop2(e,tp,eg,ep,ev,re,r,rp) local rc=Duel.GetFirstTarget() diff --git a/official/c54512827.lua b/official/c54512827.lua index 5f74143876..d513f25ffd 100644 --- a/official/c54512827.lua +++ b/official/c54512827.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --turn set 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -20,7 +20,7 @@ function s.initial_effect(c) --negate attack local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_ATTACK_ANNOUNCE) e3:SetRange(LOCATION_HAND) @@ -50,7 +50,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() diff --git a/official/c54700519.lua b/official/c54700519.lua index 260fe9b246..76fce48ccb 100644 --- a/official/c54700519.lua +++ b/official/c54700519.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) --Change Position local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e2:SetCode(EVENT_SPSUMMON_SUCCESS) @@ -35,7 +35,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.pfilter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local tc=Duel.SelectTarget(tp,s.pfilter,tp,0,LOCATION_MZONE,1,1,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,tp,LOCATION_MZONE) + Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,tp,POS_FACEDOWN_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c54842941.lua b/official/c54842941.lua index c78142f4c6..69362b9652 100644 --- a/official/c54842941.lua +++ b/official/c54842941.lua @@ -28,7 +28,7 @@ function s.initial_effect(c) --Special Summon 1 monster from your hand in face-down Defense Position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_HAND) e3:SetCost(Cost.AND(Cost.SelfReveal,s.spcost)) @@ -52,7 +52,7 @@ function s.initial_effect(c) --Change all monsters your opponent controls to face-down Defense Position local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(id,3)) - e5:SetCategory(CATEGORY_POSITION) + e5:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e5:SetCode(EVENT_FLIP) e5:SetTarget(s.postg) @@ -145,7 +145,7 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,LOCATION_MZONE) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,POS_FACEDOWN_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,0,LOCATION_MZONE,nil) diff --git a/official/c55484152.lua b/official/c55484152.lua index 8dceb78a7e..5bd5427365 100644 --- a/official/c55484152.lua +++ b/official/c55484152.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) --Set 1 "Sangen" Spell/Trap from your GY to your field local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_PHASE+PHASE_END) diff --git a/official/c55623480.lua b/official/c55623480.lua index 3b6a0bf22a..97eb55ea1d 100644 --- a/official/c55623480.lua +++ b/official/c55623480.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --Change 1 face-up monster to face-down Defense position 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_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SUMMON_SUCCESS) @@ -35,7 +35,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.posfilter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.posfilter,tp,0,LOCATION_MZONE,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() diff --git a/official/c55702233.lua b/official/c55702233.lua index a051758b92..83d1f1d10f 100644 --- a/official/c55702233.lua +++ b/official/c55702233.lua @@ -6,7 +6,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_POSITION+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_HAND|LOCATION_GRAVE) @@ -29,7 +29,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g2=Duel.SelectTarget(tp,s.posfilter,tp,0,LOCATION_MZONE,1,1,nil) g1:Merge(g2) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g1,2,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g1,2,tp,POS_FACEDOWN_DEFENSE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) end function s.spop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c55965529.lua b/official/c55965529.lua index d5e5a0f21f..8a6e86922b 100644 --- a/official/c55965529.lua +++ b/official/c55965529.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) --Special Summon 1 monster from your hand in face-down Defense Position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_HAND) e3:SetCost(Cost.AND(Cost.SelfReveal,s.spcost)) diff --git a/official/c56187077.lua b/official/c56187077.lua index 8f13465926..e4c4a1fb43 100644 --- a/official/c56187077.lua +++ b/official/c56187077.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) --Special Summon 1 monster from your hand in face-down Defense Position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_HAND) e3:SetCost(Cost.AND(Cost.SelfReveal,s.spcost)) diff --git a/official/c56294501.lua b/official/c56294501.lua index 9ecfbf032f..2fe8381c9c 100644 --- a/official/c56294501.lua +++ b/official/c56294501.lua @@ -26,8 +26,8 @@ function s.initial_effect(c) c:RegisterEffect(e3) --Flip face-down local e4=Effect.CreateEffect(c) - e4:SetCategory(CATEGORY_POSITION) e4:SetDescription(aux.Stringid(id,1)) + e4:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e4:SetType(EFFECT_TYPE_QUICK_O) e4:SetCode(EVENT_FREE_CHAIN) e4:SetRange(LOCATION_SZONE) @@ -59,7 +59,7 @@ end function s.dntg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanTurnSet,tp,LOCATION_MZONE,0,1,nil) end local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,LOCATION_MZONE,0,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.dnop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end diff --git a/official/c56773577.lua b/official/c56773577.lua index 61095e1e8f..38d9ddc4d9 100644 --- a/official/c56773577.lua +++ b/official/c56773577.lua @@ -33,6 +33,7 @@ function s.initial_effect(c) --Set 1 "Necrovalley" Spell/Trap local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(id,1)) + e5:SetCategory(CATEGORY_SET) e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e5:SetCode(EVENT_TO_GRAVE) e5:SetProperty(EFFECT_FLAG_DELAY) diff --git a/official/c56920308.lua b/official/c56920308.lua index e64bc2c29f..7cd4e79b33 100644 --- a/official/c56920308.lua +++ b/official/c56920308.lua @@ -14,6 +14,7 @@ function s.initial_effect(c) --Set itself from GY if you normal summoned "Blue-Eyes White Dragon" local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c57314798.lua b/official/c57314798.lua index 295c6fd9e9..ebdf64e993 100644 --- a/official/c57314798.lua +++ b/official/c57314798.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) --Destroy as many monsters on the field as possible and each player sets 1 Spell/Trap from the GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_DESTROY) + e2:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_DESTROYED) e2:SetCondition(function(e) return e:GetHandler():IsReason(REASON_EFFECT) end) diff --git a/official/c57775790.lua b/official/c57775790.lua index 792cd10dbc..a93c470a7c 100644 --- a/official/c57775790.lua +++ b/official/c57775790.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Set 1 "Fabled" Spell/Trap from your Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c58019984.lua b/official/c58019984.lua index 1d4aa6be5e..655b970e7b 100644 --- a/official/c58019984.lua +++ b/official/c58019984.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Set 1 Spell/Trap that mentions "Visas Starfrost" from your GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c5848934.lua b/official/c5848934.lua index eb5b34e36e..3c3d41909d 100644 --- a/official/c5848934.lua +++ b/official/c5848934.lua @@ -9,6 +9,7 @@ function s.initial_effect(c) --Set 1 "Teleport" Normal or Quick-Play Spell from your Deck, GY, or banishment 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_SPSUMMON_SUCCESS) diff --git a/official/c58551308.lua b/official/c58551308.lua index 50615bc180..6e9cb05595 100644 --- a/official/c58551308.lua +++ b/official/c58551308.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) --special summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c58760121.lua b/official/c58760121.lua index 4f18afe13f..fc1dc30d10 100644 --- a/official/c58760121.lua +++ b/official/c58760121.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FLIP+EFFECT_TYPE_SINGLE) - e1:SetCategory(CATEGORY_POSITION) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e1:SetTarget(s.postg) e1:SetOperation(s.posop) c:RegisterEffect(e1) @@ -17,7 +17,7 @@ end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,e:GetHandler()) - 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 g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,e:GetHandler()) diff --git a/official/c58882608.lua b/official/c58882608.lua index 93768a2f0d..3436c2c05e 100644 --- a/official/c58882608.lua +++ b/official/c58882608.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) --Flip 1 monster face-down local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_POSITION+CATEGORY_SEARCH+CATEGORY_TOHAND) + e3:SetCategory(CATEGORY_POSITION+CATEGORY_SEARCH+CATEGORY_TOHAND+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetRange(LOCATION_SZONE) @@ -44,7 +44,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,Card.IsCanTurnSet,tp,LOCATION_MZONE,opp_loc,1,1,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) end function s.posop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c58911105.lua b/official/c58911105.lua index f8b12e9ba2..eb63b01b04 100644 --- a/official/c58911105.lua +++ b/official/c58911105.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --to hand 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_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) diff --git a/official/c59054773.lua b/official/c59054773.lua index 2787a5a6dc..10f58e138d 100644 --- a/official/c59054773.lua +++ b/official/c59054773.lua @@ -21,6 +21,7 @@ function s.initial_effect(c) --set local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_GRAVE) e3:SetCountLimit(1,id) diff --git a/official/c59069885.lua b/official/c59069885.lua index e77e4d98d7..4ebfbde826 100644 --- a/official/c59069885.lua +++ b/official/c59069885.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --Change monster to face-down position 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_QUICK_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_CHAINING) @@ -49,7 +49,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local rc=re:GetHandler() if chk==0 then return rc:IsCanBeEffectTarget(e) and rc:IsCanTurnSet() end Duel.SetTargetCard(rc) - Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,1,tp,POS_FACEDOWN_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c59293853.lua b/official/c59293853.lua index 94ffc4cd7c..2520600094 100644 --- a/official/c59293853.lua +++ b/official/c59293853.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 "Mimighoul" monster local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E) @@ -42,7 +42,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp,f1,f2) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) - Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_EITHER,LOCATION_MZONE) + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_EITHER,POS_FACEDOWN_DEFENSE) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local f1=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 diff --git a/official/c59504256.lua b/official/c59504256.lua index f212f54367..39ee8efda7 100644 --- a/official/c59504256.lua +++ b/official/c59504256.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Flip opponent's monsters face-down local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_MZONE) @@ -63,7 +63,7 @@ end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,0,LOCATION_MZONE,nil) if chk==0 then return #g>0 end - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) Duel.SetPossibleOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_ONFIELD) end function s.posop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c59797187.lua b/official/c59797187.lua index 8d7144f80a..b7e4e4843c 100644 --- a/official/c59797187.lua +++ b/official/c59797187.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --pos 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_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_DAMAGE_STEP_END) e1:SetTarget(s.target) @@ -15,7 +15,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local tg=e:GetHandler():GetBattleTarget() if chk==0 then return tg and tg:IsRelateToBattle() end - Duel.SetOperationInfo(0,CATEGORY_POSITION,tg,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,tg,1,tp,POS_FACEDOWN_DEFENSE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local bc=e:GetHandler():GetBattleTarget() diff --git a/official/c60082869.lua b/official/c60082869.lua index 81d6c494f2..9bc31fe976 100644 --- a/official/c60082869.lua +++ b/official/c60082869.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c60398723.lua b/official/c60398723.lua index 592aebd2a0..03cbaed618 100644 --- a/official/c60398723.lua +++ b/official/c60398723.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOHAND) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOHAND+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -20,7 +20,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.filter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.filter,tp,0,LOCATION_MZONE,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.rfilter(c) return c:IsAbleToHand() diff --git a/official/c60473572.lua b/official/c60473572.lua index cc6cdd85bf..7fe8970cad 100644 --- a/official/c60473572.lua +++ b/official/c60473572.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) Pendulum.AddProcedure(c) --destroy and set local e1=Effect.CreateEffect(c) - 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) diff --git a/official/c60668166.lua b/official/c60668166.lua index 9561d9a89d..96cc901d57 100644 --- a/official/c60668166.lua +++ b/official/c60668166.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --Special Summon up to 2 "Naturia Cherries" 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:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_TO_GRAVE) diff --git a/official/c60709218.lua b/official/c60709218.lua index 000a6b3366..6652e3a682 100644 --- a/official/c60709218.lua +++ b/official/c60709218.lua @@ -5,7 +5,7 @@ local s,id=GetID() function s.initial_effect(c) --activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c60946049.lua b/official/c60946049.lua index c2095b5d5a..624eb90dea 100644 --- a/official/c60946049.lua +++ b/official/c60946049.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) --Special Summon this card from your hand, then you can Set 1 "Artmage" Spell from your Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - 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) diff --git a/official/c60990740.lua b/official/c60990740.lua index 7aad19ac86..5a39187dc1 100644 --- a/official/c60990740.lua +++ b/official/c60990740.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Excavate the top card of your Deck and set it if it is a Normal Trap local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_DECKDES) + e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_GRAVE) @@ -30,6 +30,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.CanPlayerSetSpellTrap(tp) end + Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if not Duel.IsPlayerCanDiscardDeck(tp,1) or not Duel.CanPlayerSetSpellTrap(tp) then return end diff --git a/official/c6104968.lua b/official/c6104968.lua index a7fb8d5f35..75e63534c6 100644 --- a/official/c6104968.lua +++ b/official/c6104968.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --flip 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_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetTarget(s.target) diff --git a/official/c6116731.lua b/official/c6116731.lua index 2ce3fabcbc..77cd3d84e3 100644 --- a/official/c6116731.lua +++ b/official/c6116731.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Change the position of another monster on the field 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_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FLIP) @@ -17,7 +17,7 @@ function s.initial_effect(c) --Change itself to face-down local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1) @@ -34,7 +34,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,c) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,c) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEUP_ATTACKPOS_FACEDOWN_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() @@ -56,7 +56,7 @@ function s.selfpostg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return c:IsCanTurnSet() and not c:HasFlagEffect(id) end c:RegisterFlagEffect(id,RESET_EVENT|(RESETS_STANDARD&~RESET_TURN_SET)|RESET_PHASE|PHASE_END,0,1) - Duel.SetOperationInfo(0,CATEGORY_POSITION,c,1,tp,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,c,1,tp,POS_FACEDOWN_DEFENSE) end function s.selfposop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() diff --git a/official/c61292243.lua b/official/c61292243.lua index 93224aba0b..0b4b663aaa 100644 --- a/official/c61292243.lua +++ b/official/c61292243.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set 1 "Rescue-ACE" Trap from your GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c61318483.lua b/official/c61318483.lua index 18e1cf0c89..e0a5b76d2d 100644 --- a/official/c61318483.lua +++ b/official/c61318483.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --turn set 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -20,7 +20,7 @@ function s.initial_effect(c) --pos local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_ATTACK_ANNOUNCE) e3:SetRange(LOCATION_HAND) @@ -40,7 +40,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() @@ -57,7 +57,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return at:IsCanTurnSet() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) - Duel.SetOperationInfo(0,CATEGORY_POSITION,at,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,at,1,tp,POS_FACEDOWN_DEFENSE) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() diff --git a/official/c6137095.lua b/official/c6137095.lua index 9a103867f9..992a4404fd 100644 --- a/official/c6137095.lua +++ b/official/c6137095.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_NEGATE) + e1:SetCategory(CATEGORY_NEGATE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(s.condition) diff --git a/official/c61470213.lua b/official/c61470213.lua index ed022fa132..b368f1e110 100644 --- a/official/c61470213.lua +++ b/official/c61470213.lua @@ -9,6 +9,7 @@ function s.initial_effect(c) --Set 1 "Altergeist" Trap 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_SPSUMMON_SUCCESS) diff --git a/official/c61472381.lua b/official/c61472381.lua index b22cd8f685..0d929b01cd 100644 --- a/official/c61472381.lua +++ b/official/c61472381.lua @@ -8,6 +8,7 @@ function s.initial_effect(c) --Set 1 "Fire Formation" spell/trap from deck or GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) diff --git a/official/c62022479.lua b/official/c62022479.lua index 76630fba4c..dc45596727 100644 --- a/official/c62022479.lua +++ b/official/c62022479.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --Set this card from the GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c62089826.lua b/official/c62089826.lua index 0b4e9da4c3..f941f6a316 100644 --- a/official/c62089826.lua +++ b/official/c62089826.lua @@ -43,6 +43,7 @@ function s.initial_effect(c) --Set Spell/Trap local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(id,2)) + e5:SetCategory(CATEGORY_SET) e5:SetType(EFFECT_TYPE_QUICK_O) e5:SetCode(EVENT_FREE_CHAIN) e5:SetRange(LOCATION_SZONE) diff --git a/official/c62091148.lua b/official/c62091148.lua index 5c9bf39692..6ed378160c 100644 --- a/official/c62091148.lua +++ b/official/c62091148.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Equip this card to a FIRE monster local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_EQUIP) + e1:SetCategory(CATEGORY_EQUIP+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -39,6 +39,7 @@ function s.eqptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.SelectTarget(tp,aux.FaceupFilter(Card.IsAttribute,ATTRIBUTE_FIRE),tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0) + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,tp,POS_FACEDOWN_DEFENSE) end function s.posfilter(c) return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsCanTurnSet() diff --git a/official/c62173132.lua b/official/c62173132.lua index 03a9e15a06..12224f9373 100644 --- a/official/c62173132.lua +++ b/official/c62173132.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c62592805.lua b/official/c62592805.lua index fd62a5ccfe..90d5ccf03f 100644 --- a/official/c62592805.lua +++ b/official/c62592805.lua @@ -21,6 +21,7 @@ function s.initial_effect(c) --Attach a "Purrely" Quick-Play Spell local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_CHAINING) e2:SetRange(LOCATION_MZONE) diff --git a/official/c62694833.lua b/official/c62694833.lua index 069f305069..402f3d2e86 100644 --- a/official/c62694833.lua +++ b/official/c62694833.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --When normal summoned, set 1 "Fire Formation" spell/trap from 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:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) @@ -17,6 +18,7 @@ function s.initial_effect(c) --If special summoned by effect of a "Fire Fist" monster, set 1 "Fire Formation" spell/trap from 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:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetProperty(EFFECT_FLAG_DELAY) diff --git a/official/c62995268.lua b/official/c62995268.lua index 18798631f6..4e72294586 100644 --- a/official/c62995268.lua +++ b/official/c62995268.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c63086455.lua b/official/c63086455.lua index 8b2dcc107a..ca95c123c4 100644 --- a/official/c63086455.lua +++ b/official/c63086455.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Send 1 card to the GY and Set 1 card from the GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_LEAVE_GRAVE) + e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c63198739.lua b/official/c63198739.lua index 2b1f5bfd5d..d0a375f581 100644 --- a/official/c63198739.lua +++ b/official/c63198739.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Set 1 "Primite" Spell/Trap from your 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) diff --git a/official/c63526052.lua b/official/c63526052.lua index 192585a9b9..f4b6d486f1 100644 --- a/official/c63526052.lua +++ b/official/c63526052.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon this card from your hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_HAND) @@ -17,7 +17,7 @@ function s.initial_effect(c) --Reduce this card's Level by 2 or 4, and if you do, Special Summon "Krawler" monster(s) from your hand, Deck, or GY whose total Levels equal the amount reduced local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LVCHANGE+CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_LVCHANGE+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,{id,1}) @@ -35,7 +35,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) local g=Duel.SelectTarget(tp,Card.IsCanTurnSet,tp,LOCATION_MZONE,0,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,0) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,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 c=e:GetHandler() diff --git a/official/c6353603.lua b/official/c6353603.lua index 31c4155229..61ff0b23cb 100644 --- a/official/c6353603.lua +++ b/official/c6353603.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --set 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:SetCode(EVENT_BATTLE_DAMAGE) e1:SetCountLimit(1) diff --git a/official/c645794.lua b/official/c645794.lua index 889cd502e8..39f1007de6 100644 --- a/official/c645794.lua +++ b/official/c645794.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) Pendulum.AddProcedure(c) --search local e2=Effect.CreateEffect(c) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCountLimit(1,id) diff --git a/official/c64659851.lua b/official/c64659851.lua index 3d2b6a0608..0e452ebcb5 100644 --- a/official/c64659851.lua +++ b/official/c64659851.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Your opponent can Set 1 Trap from their hand or Deck 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,EFFECT_COUNT_CODE_OATH) diff --git a/official/c64749612.lua b/official/c64749612.lua index d8dea47767..0fcc51c986 100644 --- a/official/c64749612.lua +++ b/official/c64749612.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --search 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_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) diff --git a/official/c64767757.lua b/official/c64767757.lua index b4ffc203f2..74940a10f5 100644 --- a/official/c64767757.lua +++ b/official/c64767757.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Add 1 card attached to 1 "Materiactor" Xyz Monster you control to your hand and negate the activation local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_NEGATE+CATEGORY_TODECK+CATEGORY_ATKCHANGE) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_NEGATE+CATEGORY_TODECK+CATEGORY_ATKCHANGE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c64804316.lua b/official/c64804316.lua index 0644527895..da0d376d37 100644 --- a/official/c64804316.lua +++ b/official/c64804316.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) --Change itself to face-down 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -21,7 +21,7 @@ function s.initial_effect(c) --Mill 2 cards local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_TOGRAVE+CATEGORY_DECKDES+CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_POSITION) + e3:SetCategory(CATEGORY_TOGRAVE+CATEGORY_DECKDES+CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_POSITION+CATEGORY_SET) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetCode(EVENT_SUMMON_SUCCESS) e3:SetTarget(s.gytg) @@ -42,7 +42,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() @@ -55,7 +55,7 @@ function s.gytg(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.GetDecktopGroup(tp,2) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,#g,tp,LOCATION_DECK) Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) - Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,LOCATION_MZONE) + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,POS_FACEDOWN_DEFENSE) end function s.thfilter(c) return c:IsSetCard(SET_GHOSTRICK) and c:IsSpellTrap() and c:IsAbleToHand() diff --git a/official/c64815084.lua b/official/c64815084.lua index 7b7c70decd..31f551e391 100644 --- a/official/c64815084.lua +++ b/official/c64815084.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) - e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_END_PHASE) diff --git a/official/c64961254.lua b/official/c64961254.lua index bbb65b2060..64d0a06e29 100644 --- a/official/c64961254.lua +++ b/official/c64961254.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Reveal the top card of your opponent's Deck and if it was the declared type, they Set it to their field local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH) + e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_SZONE) e2:SetCountLimit(1) diff --git a/official/c65046521.lua b/official/c65046521.lua index 99b84cede6..4ccd324092 100644 --- a/official/c65046521.lua +++ b/official/c65046521.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 Spellcaster with 1500 DEF from your hand or GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_END_PHASE) diff --git a/official/c65289956.lua b/official/c65289956.lua index 754b693650..d655f260e8 100644 --- a/official/c65289956.lua +++ b/official/c65289956.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Set 1 Spell/Trap from your hand or GY 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_DELAY) e1:SetCode(EVENT_TO_GRAVE) diff --git a/official/c65330383.lua b/official/c65330383.lua index e5d3bad133..6464e50f3f 100644 --- a/official/c65330383.lua +++ b/official/c65330383.lua @@ -53,7 +53,7 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) else e:SetLabel(0) end - local cat=0 + local cat=CATEGORY_SET if e:GetLabel()==1 then cat=cat+CATEGORY_DRAW end e:SetCategory(cat) end diff --git a/official/c65357623.lua b/official/c65357623.lua index b72960bfe8..7fee50bfcc 100644 --- a/official/c65357623.lua +++ b/official/c65357623.lua @@ -18,8 +18,8 @@ function s.initial_effect(c) c:RegisterEffect(e1) --Set itself from GY local e2=Effect.CreateEffect(c) - e2:SetCategory(CATEGORY_TODECK) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_TODECK+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,id) diff --git a/official/c65477143.lua b/official/c65477143.lua index a67a326ede..9018953b2b 100644 --- a/official/c65477143.lua +++ b/official/c65477143.lua @@ -19,6 +19,7 @@ function s.initial_effect(c) --Reveal 3 "Abyss Script" Spells local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCountLimit(1,{id,1}) diff --git a/official/c6589707.lua b/official/c6589707.lua index 2abbc9f4bd..30bfa1ef15 100644 --- a/official/c6589707.lua +++ b/official/c6589707.lua @@ -41,7 +41,7 @@ function s.initial_effect(c) --Special Summon 1 monster from GY in face-down Defense Position local e6=Effect.CreateEffect(c) e6:SetDescription(aux.Stringid(id,0)) - e6:SetCategory(CATEGORY_SPECIAL_SUMMON) + e6:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e6:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e6:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e6:SetCode(EVENT_DESTROYED) diff --git a/official/c65976795.lua b/official/c65976795.lua index ff0c71f6f4..e959d835fd 100644 --- a/official/c65976795.lua +++ b/official/c65976795.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) --Change this card to face-down Defense Position 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) @@ -73,7 +73,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&~RESET_TURN_SET)|RESET_PHASE|PHASE_END,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() diff --git a/official/c66069967.lua b/official/c66069967.lua index 6c4bba2804..4f5c2b89b1 100644 --- a/official/c66069967.lua +++ b/official/c66069967.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon itself if tributed and sent to the 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_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_TO_GRAVE) diff --git a/official/c66078354.lua b/official/c66078354.lua index b2b5be6db3..0b96129907 100644 --- a/official/c66078354.lua +++ b/official/c66078354.lua @@ -23,6 +23,7 @@ function s.initial_effect(c) --Set Trap that lists "Adventurer Token" from the Deck local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_PHASE|PHASE_BATTLE) e3:SetCountLimit(1,{id,1}) diff --git a/official/c66206748.lua b/official/c66206748.lua index af7230eb11..b24da2bf94 100644 --- a/official/c66206748.lua +++ b/official/c66206748.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set 1 "Mask Change" from your Deck or 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_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c66328392.lua b/official/c66328392.lua index 618f0801c5..dd1c3c0f8b 100644 --- a/official/c66328392.lua +++ b/official/c66328392.lua @@ -35,7 +35,7 @@ function s.initial_effect(c) --Set this card local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) - e3:SetCategory(CATEGORY_LEAVE_GRAVE) + e3:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_PHASE+PHASE_END) e3:SetRange(LOCATION_GRAVE) diff --git a/official/c66393507.lua b/official/c66393507.lua index 11f46dfe61..c7f9173493 100644 --- a/official/c66393507.lua +++ b/official/c66393507.lua @@ -33,7 +33,7 @@ function s.initial_effect(c) --Special Summon 2 "Krawler" monsters with different names from your GY in face-down Defense Position local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - 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_CARD_TARGET) e2:SetCode(EVENT_LEAVE_FIELD) diff --git a/official/c66762372.lua b/official/c66762372.lua index f4c9df5532..97cd22ecb7 100644 --- a/official/c66762372.lua +++ b/official/c66762372.lua @@ -15,6 +15,7 @@ function s.initial_effect(c) --set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetRange(LOCATION_MZONE) diff --git a/official/c67007102.lua b/official/c67007102.lua index 3d2f88820f..948b78e13e 100644 --- a/official/c67007102.lua +++ b/official/c67007102.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set 1 "Eldlixir" Spell/Trap from the Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c67037924.lua b/official/c67037924.lua index ac17c920ee..9da8eb0788 100644 --- a/official/c67037924.lua +++ b/official/c67037924.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) --Set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) diff --git a/official/c67050396.lua b/official/c67050396.lua index 05c5ebb6f3..976043b6e6 100644 --- a/official/c67050396.lua +++ b/official/c67050396.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --pos local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) @@ -53,7 +53,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.posfilter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.posfilter,tp,0,LOCATION_MZONE,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() diff --git a/official/c67098897.lua b/official/c67098897.lua index c896177f91..f7e3c912ba 100644 --- a/official/c67098897.lua +++ b/official/c67098897.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) --Change up to 2 face-up monsters to face-down Defense Position 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_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SPSUMMON_SUCCESS) diff --git a/official/c67100549.lua b/official/c67100549.lua index 6058c250da..eb51a4dc0e 100644 --- a/official/c67100549.lua +++ b/official/c67100549.lua @@ -61,6 +61,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) and re:GetHandler():IsCode(CARD_ALBAZ) then local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_GRAVE) diff --git a/official/c67115133.lua b/official/c67115133.lua index ed61342794..e1dbe4e97c 100644 --- a/official/c67115133.lua +++ b/official/c67115133.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --Set this card 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_DESTROYED) diff --git a/official/c6713443.lua b/official/c6713443.lua index 4a699078de..e1d4683b21 100644 --- a/official/c6713443.lua +++ b/official/c6713443.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(s.spcost) e1:SetTarget(s.sptg) diff --git a/official/c67248304.lua b/official/c67248304.lua index 4f1e0fc82c..b2139b1e4e 100644 --- a/official/c67248304.lua +++ b/official/c67248304.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Change as many other monsters to face-down defense local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOHAND) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOHAND+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP) e1:SetCountLimit(1,id) e1:SetTarget(s.target) @@ -17,7 +17,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local fdg=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler()) local thg=Duel.GetMatchingGroup(aux.AND(Card.IsAbleToHand,aux.FaceupFilter(Card.IsSpellTrap)),tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,fdg,#fdg,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,fdg,#fdg,tp,POS_FACEDOWN_DEFENSE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,thg,#thg,0,0) end function s.operation(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c67282505.lua b/official/c67282505.lua index fc401c27fd..b70a736347 100644 --- a/official/c67282505.lua +++ b/official/c67282505.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Change positions and negate activated effect local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION+CATEGORY_DISABLE) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_DISABLE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_CHAINING) @@ -56,7 +56,7 @@ function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(Card.IsPosition,tp,LOCATION_MZONE,0,1,nil,POS_FACEDOWN_DEFENSE) and c:IsCanTurnSet() end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local tc=Duel.SelectTarget(tp,Card.IsPosition,tp,LOCATION_MZONE,0,1,1,nil,POS_FACEDOWN_DEFENSE):GetFirst() - Duel.SetOperationInfo(0,CATEGORY_POSITION,Group.FromCards(c,tc),1,tp,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,Group.FromCards(c,tc),1,tp,POS_FACEUP_DEFENSE|POS_FACEDOWN_DEFENSE) if tc:IsSetCard(SET_NINJA) and not tc:IsCode(id) then Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0) end diff --git a/official/c67314110.lua b/official/c67314110.lua index 431643e773..adaa215ae3 100644 --- a/official/c67314110.lua +++ b/official/c67314110.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --set 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:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(s.settg) diff --git a/official/c67381587.lua b/official/c67381587.lua index e3c976f077..237e3aac9a 100644 --- a/official/c67381587.lua +++ b/official/c67381587.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) --position change local e2=Effect.CreateEffect(c) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) @@ -44,7 +44,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g2=Duel.SelectTarget(tp,s.posfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,g1:GetFirst()) g1:Merge(g2) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g1,2,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g1,2,tp,POS_FACEDOWN_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetTargetCards(e) diff --git a/official/c67584223.lua b/official/c67584223.lua index fb4ee23548..e648924d85 100644 --- a/official/c67584223.lua +++ b/official/c67584223.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Tribute Summon 1 monster local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_SUMMON) + e2:SetCategory(CATEGORY_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,{id,1}) diff --git a/official/c67725394.lua b/official/c67725394.lua index f5ee9698f4..ccd74afb11 100644 --- a/official/c67725394.lua +++ b/official/c67725394.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) --Summon itself by Tribute Summon (Quick) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) - e1:SetCategory(CATEGORY_SUMMON) + e1:SetCategory(CATEGORY_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_HAND) diff --git a/official/c67797569.lua b/official/c67797569.lua index 60b984e968..9d92017261 100644 --- a/official/c67797569.lua +++ b/official/c67797569.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) --Change face-up monsters your opponent controls, up to the number of "Laval" monsters you control, to face-down Defense Position local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1) @@ -67,7 +67,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) local ct=Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsSetCard,SET_LAVAL),tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsCanTurnSet),tp,0,LOCATION_MZONE,nil) if chk==0 then return ct>0 and #g>0 end - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,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 ct=Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsSetCard,SET_LAVAL),tp,LOCATION_MZONE,0,nil) diff --git a/official/c67829249.lua b/official/c67829249.lua index 85d3138a39..ac6c80dd3e 100644 --- a/official/c67829249.lua +++ b/official/c67829249.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(s.condition) diff --git a/official/c67831115.lua b/official/c67831115.lua index f598b11687..2d7614dd3c 100644 --- a/official/c67831115.lua +++ b/official/c67831115.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) --special summon local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,0)) - e4:SetCategory(CATEGORY_SPECIAL_SUMMON) + e4:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e4:SetType(EFFECT_TYPE_IGNITION) e4:SetRange(LOCATION_FZONE) e4:SetCountLimit(1) diff --git a/official/c67853262.lua b/official/c67853262.lua index 1199ab05ba..81e028e952 100644 --- a/official/c67853262.lua +++ b/official/c67853262.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Add 1 Spell from your GY to your hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e1:SetCountLimit(1,id) diff --git a/official/c68597372.lua b/official/c68597372.lua index 0869266257..739b28523b 100644 --- a/official/c68597372.lua +++ b/official/c68597372.lua @@ -15,8 +15,8 @@ function s.initial_effect(c) c:RegisterEffect(e1) --pos local e2=Effect.CreateEffect(c) - e2:SetCategory(CATEGORY_POSITION) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCountLimit(1) @@ -37,7 +37,7 @@ function s.target(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_FACEUP) 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.operation(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c68630939.lua b/official/c68630939.lua index 0e8fd67a63..b6dff54bcc 100644 --- a/official/c68630939.lua +++ b/official/c68630939.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --Set itself from GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e2:SetCode(EVENT_DESTROYED) diff --git a/official/c68812773.lua b/official/c68812773.lua index 8571ec9081..c762a1165a 100644 --- a/official/c68812773.lua +++ b/official/c68812773.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --Special Summon 1 "Orbital 7" from your 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_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c68829754.lua b/official/c68829754.lua index b16cb9e9f4..81328c076f 100644 --- a/official/c68829754.lua +++ b/official/c68829754.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --Set 1 "Golden Land" Spell/Trap from your Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,id) diff --git a/official/c68860936.lua b/official/c68860936.lua index 57d256d5f1..b9cc37ded8 100644 --- a/official/c68860936.lua +++ b/official/c68860936.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --search 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_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,id) diff --git a/official/c69272449.lua b/official/c69272449.lua index 31587a7662..6171ac2f28 100644 --- a/official/c69272449.lua +++ b/official/c69272449.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --Set 1 "Maliss" Trap from your Deck with a different name from the cards in your GY 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_SUMMON_SUCCESS) diff --git a/official/c69299029.lua b/official/c69299029.lua index 04ed27aae7..3ed3b0bed6 100644 --- a/official/c69299029.lua +++ b/official/c69299029.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --When this card is activated: You can Set 1 "Apophis" Trap from your Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c69320362.lua b/official/c69320362.lua index 0062c549f9..a47361165a 100644 --- a/official/c69320362.lua +++ b/official/c69320362.lua @@ -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:SetHintTiming(0,TIMING_END_PHASE) @@ -19,7 +19,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) end local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil) diff --git a/official/c69351984.lua b/official/c69351984.lua index cbe2d0088d..18a8aba1be 100644 --- a/official/c69351984.lua +++ b/official/c69351984.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) Pendulum.AddProcedure(c) --destroy and set local e1=Effect.CreateEffect(c) - 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) diff --git a/official/c69599136.lua b/official/c69599136.lua index e49df8ca95..d149478898 100644 --- a/official/c69599136.lua +++ b/official/c69599136.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --When opponent summons a monster(s), change it 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:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(s.target) @@ -25,11 +25,13 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return eg and eg:IsExists(s.filter,1,nil,tp) end local g=eg:Filter(s.filter,nil,tp) Duel.SetTargetCard(g) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) end function s.target2(e,tp,eg,ep,ev,re,r,rp,chk) local tc=eg:GetFirst() if chk==0 then return rp==1-tp and tc:IsFaceup() and tc:IsCanTurnSet() end Duel.SetTargetCard(tc) + Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,tp,POS_FACEDOWN_DEFENSE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetTargetCards(e) diff --git a/official/c69895264.lua b/official/c69895264.lua index a1813a4a51..939bf4770e 100644 --- a/official/c69895264.lua +++ b/official/c69895264.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Send to Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TODECK) + e1:SetCategory(CATEGORY_TODECK+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c70204022.lua b/official/c70204022.lua index d7c3cb3100..7c34ebbe62 100644 --- a/official/c70204022.lua +++ b/official/c70204022.lua @@ -30,7 +30,7 @@ function s.initial_effect(c) --Special Summon "Symphonic Warrior" monster from Deck local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c70355994.lua b/official/c70355994.lua index 0c523c8f49..10eb5c999c 100644 --- a/official/c70355994.lua +++ b/official/c70355994.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --set 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:SetCode(EVENT_BATTLE_DESTROYING) e1:SetCountLimit(1) diff --git a/official/c70389815.lua b/official/c70389815.lua index 33b62ae26b..6203931c2a 100644 --- a/official/c70389815.lua +++ b/official/c70389815.lua @@ -25,6 +25,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) e:SetOperation(s.thop) s.thtg(e,tp,eg,ep,ev,re,r,rp,1) else + e:SetCategory(CATEGORY_SET) e:SetOperation(s.setop) s.settg(e,tp,eg,ep,ev,re,r,rp,1) end diff --git a/official/c70564929.lua b/official/c70564929.lua index 0dfbe150cf..cbfa15013c 100644 --- a/official/c70564929.lua +++ b/official/c70564929.lua @@ -10,6 +10,7 @@ function s.initial_effect(c) --set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_SZONE) diff --git a/official/c70569684.lua b/official/c70569684.lua index eb2a7a063b..07001101e5 100644 --- a/official/c70569684.lua +++ b/official/c70569684.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Set itself from GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,2)) - e2:SetCategory(CATEGORY_DESTROY) + e2:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetRange(LOCATION_GRAVE) e2:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c70825459.lua b/official/c70825459.lua index 3afde87696..1d8bcd623a 100644 --- a/official/c70825459.lua +++ b/official/c70825459.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Destroy 1 monster you control, and if you do, Set 1 Normal Trap directly from your Deck, except "Trap Tracks" local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c70871153.lua b/official/c70871153.lua index f4f3113a88..13191ea557 100644 --- a/official/c70871153.lua +++ b/official/c70871153.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Set 1 "Dragontail" Spell/Trap from your Deck, then you can destroy 1 Spell/Trap on the field local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_BE_MATERIAL) diff --git a/official/c70975131.lua b/official/c70975131.lua index 4bebd42c1c..ba6b4a1e1a 100644 --- a/official/c70975131.lua +++ b/official/c70975131.lua @@ -22,6 +22,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_PHASE+PHASE_END) e3:SetRange(LOCATION_MZONE) diff --git a/official/c71228611.lua b/official/c71228611.lua index b1dacd544f..65bcc74fcf 100644 --- a/official/c71228611.lua +++ b/official/c71228611.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 Level 4 or lower Beast monster from your Deck in face-down Defense Position local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c71348837.lua b/official/c71348837.lua index 8828dd4c02..4a43c4c39b 100644 --- a/official/c71348837.lua +++ b/official/c71348837.lua @@ -21,6 +21,7 @@ function s.initial_effect(c) --Set 1 "Madolche" Spell/Trap from your Deck local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e3:SetCode(EVENT_TO_DECK) e3:SetRange(LOCATION_SZONE) diff --git a/official/c71406430.lua b/official/c71406430.lua index b0a29b27eb..373cac81a1 100644 --- a/official/c71406430.lua +++ b/official/c71406430.lua @@ -19,6 +19,7 @@ function s.initial_effect(c) --Set 1 "Libromancer" Trap from the Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,id) diff --git a/official/c71410542.lua b/official/c71410542.lua index 0f2b236e4d..504e614e24 100644 --- a/official/c71410542.lua +++ b/official/c71410542.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) --Special Summon both this card and 1 other Flip monster from your hand 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) diff --git a/official/c71415349.lua b/official/c71415349.lua index 8fa7b66bb7..29b802c3a0 100644 --- a/official/c71415349.lua +++ b/official/c71415349.lua @@ -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) @@ -24,7 +24,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() diff --git a/official/c71440209.lua b/official/c71440209.lua index 5ca130e032..9fdf454f6a 100644 --- a/official/c71440209.lua +++ b/official/c71440209.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY,EFFECT_FLAG2_CHECK_SIMULTANEOUS) e2:SetCode(EVENT_SPSUMMON_SUCCESS) diff --git a/official/c71948047.lua b/official/c71948047.lua index 77330d0275..af6b49fd61 100644 --- a/official/c71948047.lua +++ b/official/c71948047.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) --Set 1 "Rescue-ACE" Spell from your GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - 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) diff --git a/official/c72270339.lua b/official/c72270339.lua index eb97625dec..9e10483fae 100644 --- a/official/c72270339.lua +++ b/official/c72270339.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set 1 "Sinful Spoils" Spell/Trap directly 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_SUMMON_SUCCESS) diff --git a/official/c72370114.lua b/official/c72370114.lua index 93bcefa0ca..41d878679e 100644 --- a/official/c72370114.lua +++ b/official/c72370114.lua @@ -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) @@ -27,7 +27,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() diff --git a/official/c72386290.lua b/official/c72386290.lua index 7c3ffb457e..4aeb07a1af 100644 --- a/official/c72386290.lua +++ b/official/c72386290.lua @@ -15,6 +15,7 @@ function s.initial_effect(c) --Set 1 "Aquamirror" Spell/Trap during the End Phase local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c72566043.lua b/official/c72566043.lua index d415bb1a76..88242b2261 100644 --- a/official/c72566043.lua +++ b/official/c72566043.lua @@ -32,6 +32,7 @@ function s.initial_effect(c) --Set 1 Trap Card from either GY local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(id,0)) + e5:SetCategory(CATEGORY_SET) e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e5:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e5:SetCode(EVENT_DESTROYED) diff --git a/official/c72913666.lua b/official/c72913666.lua index ee9654575b..b93d7fcfae 100644 --- a/official/c72913666.lua +++ b/official/c72913666.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --turn set 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -39,7 +39,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() diff --git a/official/c73355772.lua b/official/c73355772.lua index ee1b5ea502..e07c290c44 100644 --- a/official/c73355772.lua +++ b/official/c73355772.lua @@ -19,6 +19,7 @@ function s.initial_effect(c) --Set 1 "Dogmatika" 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_SPSUMMON_SUCCESS) diff --git a/official/c73468603.lua b/official/c73468603.lua index 5ad3eb2565..9e83917d31 100644 --- a/official/c73468603.lua +++ b/official/c73468603.lua @@ -4,6 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(s.target) diff --git a/official/c73567374.lua b/official/c73567374.lua index 121822beeb..abdb7f197a 100644 --- a/official/c73567374.lua +++ b/official/c73567374.lua @@ -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) @@ -19,6 +19,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil) if chk==0 then return #g>0 end Duel.SetTargetCard(g) + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.filter2(c,e) return s.filter(c) and not c:IsImmuneToEffect(e) diff --git a/official/c73575650.lua b/official/c73575650.lua index 81d8e85306..c2ee21b4e9 100644 --- a/official/c73575650.lua +++ b/official/c73575650.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) e1:SetTarget(s.thtg) e1:SetOperation(s.thop) diff --git a/official/c73602965.lua b/official/c73602965.lua index a5be73d6e7..615d5a87b9 100644 --- a/official/c73602965.lua +++ b/official/c73602965.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 "Labrynth" monster, or Set 1 Normal Trap, from your hand 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_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_HAND|LOCATION_MZONE) diff --git a/official/c73639099.lua b/official/c73639099.lua index 3720c60f32..774f428b91 100644 --- a/official/c73639099.lua +++ b/official/c73639099.lua @@ -31,6 +31,7 @@ function s.initial_effect(c) --Set 1 "Trap Hole" normal trap card from deck, optional trigger effect local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(id,1)) + e5:SetCategory(CATEGORY_SET) e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e5:SetCode(EVENT_CHAINING) e5:SetProperty(EFFECT_FLAG_DELAY) diff --git a/official/c73640163.lua b/official/c73640163.lua index bb4775a6bc..105f54833d 100644 --- a/official/c73640163.lua +++ b/official/c73640163.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 of your "Penguin" monsters that was sent from your Monster Zone to your GY by an opponent's card local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_HANDES+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_HANDES+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_TO_GRAVE) diff --git a/official/c73702909.lua b/official/c73702909.lua index 102eb91132..bd6ad0748d 100644 --- a/official/c73702909.lua +++ b/official/c73702909.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --spsummon 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.condition) diff --git a/official/c7375867.lua b/official/c7375867.lua index d2fa225c0c..0f2cd9bb3f 100644 --- a/official/c7375867.lua +++ b/official/c7375867.lua @@ -19,7 +19,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_DISABLE) + e2:SetCategory(CATEGORY_DISABLE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_BE_MATERIAL) diff --git a/official/c74003290.lua b/official/c74003290.lua index 194272b835..0e1541be7f 100644 --- a/official/c74003290.lua +++ b/official/c74003290.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set itself from GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_SPSUMMON_SUCCESS) diff --git a/official/c74018812.lua b/official/c74018812.lua index 58018fa3f0..b6ca21fbcb 100644 --- a/official/c74018812.lua +++ b/official/c74018812.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Set 1 "Labrynth" Spell/Trap from the hand or deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_HAND|LOCATION_MZONE) diff --git a/official/c74213995.lua b/official/c74213995.lua index bcf06c583f..921bd7bb88 100644 --- a/official/c74213995.lua +++ b/official/c74213995.lua @@ -56,8 +56,8 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) e:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) elseif op==2 then - e:SetCategory(CATEGORY_POSITION) - Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_EITHER,LOCATION_MZONE) + e:SetCategory(CATEGORY_POSITION+CATEGORY_SET) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_EITHER,POS_FACEDOWN_DEFENSE) end end function s.effop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c74506079.lua b/official/c74506079.lua index 43ef542a77..1e19475f33 100644 --- a/official/c74506079.lua +++ b/official/c74506079.lua @@ -29,7 +29,7 @@ function s.matcheck(e,c) if ct>=2 then 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_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) diff --git a/official/c74611888.lua b/official/c74611888.lua index ee9747a6f7..b2802d835e 100644 --- a/official/c74611888.lua +++ b/official/c74611888.lua @@ -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:SetHintTiming(0,TIMINGS_CHECK_MONSTER_E) @@ -25,7 +25,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) diff --git a/official/c74631897.lua b/official/c74631897.lua index 654c7eeb3d..8056222af6 100644 --- a/official/c74631897.lua +++ b/official/c74631897.lua @@ -30,6 +30,7 @@ function s.initial_effect(c) --Set 1 "Artmage" 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_SPSUMMON_SUCCESS) diff --git a/official/c74640994.lua b/official/c74640994.lua index 7aff061950..9cc3d95b6d 100644 --- a/official/c74640994.lua +++ b/official/c74640994.lua @@ -4,6 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) @@ -36,10 +37,11 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) {b4,aux.Stringid(id,3)}) e:SetLabel(op) if op==1 or op==2 then - e:SetCategory(CATEGORY_POSITION) - Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,0,0) + e:SetCategory(CATEGORY_POSITION+CATEGORY_SET) + local pos=op==1 and (POS_FACEUP_ATTACK|POS_FACEUP_DEFENSE) or POS_FACEDOWN_DEFENSE + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,tp,pos) elseif op==3 then - e:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE) + e:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE+CATEGORY_SET) end end function s.effectfilter(e,ct) diff --git a/official/c74762582.lua b/official/c74762582.lua index 91dbe73f4e..20fcf92ff1 100644 --- a/official/c74762582.lua +++ b/official/c74762582.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --negate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_NEGATE+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_NEGATE+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_CHAINING) e1:SetCountLimit(1,id) @@ -19,7 +19,7 @@ function s.initial_effect(c) --spsummon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION+CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_MZONE) @@ -42,7 +42,7 @@ function s.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,c) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) end function s.disop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) then @@ -69,7 +69,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.posfilter,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) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_GRAVE) end function s.spop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c74937659.lua b/official/c74937659.lua index d7179f2516..13f5582ece 100644 --- a/official/c74937659.lua +++ b/official/c74937659.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) --to grave local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetCountLimit(1,id) e2:SetRange(LOCATION_MZONE) diff --git a/official/c75003700.lua b/official/c75003700.lua index b01ea6b5a4..382bdbd6c7 100644 --- a/official/c75003700.lua +++ b/official/c75003700.lua @@ -20,6 +20,7 @@ function s.initial_effect(c) --Set 1 "Dragontail" Spell/Trap from your Deck 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_BE_MATERIAL) diff --git a/official/c75025112.lua b/official/c75025112.lua index 3fc34be11d..5f16f1bd91 100644 --- a/official/c75025112.lua +++ b/official/c75025112.lua @@ -5,7 +5,7 @@ local s,id=GetID() function s.initial_effect(c) --Normal Summon/Set local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SUMMON) + e1:SetCategory(CATEGORY_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(s.condition) diff --git a/official/c75046994.lua b/official/c75046994.lua index e82fb3a792..0aabe6e410 100644 --- a/official/c75046994.lua +++ b/official/c75046994.lua @@ -29,7 +29,7 @@ function s.initial_effect(c) --Change an opponent's monster with 2500 or more ATK that activates its effect to face-down Defense Position 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_QUICK_O) e3:SetCode(EVENT_CHAINING) e3:SetRange(LOCATION_MZONE) @@ -92,7 +92,7 @@ end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) local rc=re:GetHandler() if chk==0 then return rc:IsFaceup() and rc:IsCanTurnSet() and rc:IsRelateToEffect(re) end - Duel.SetOperationInfo(0,CATEGORY_POSITION,rc,1,tp,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,rc,1,tp,POS_FACEDOWN_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local rc=re:GetHandler() diff --git a/official/c75109441.lua b/official/c75109441.lua index c82eeef4dd..707908cb07 100644 --- a/official/c75109441.lua +++ b/official/c75109441.lua @@ -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) @@ -23,7 +23,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() diff --git a/official/c75132317.lua b/official/c75132317.lua index 55cff5a61d..cbee8caaf9 100644 --- a/official/c75132317.lua +++ b/official/c75132317.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_TO_GRAVE) e1:SetProperty(EFFECT_FLAG_DELAY) diff --git a/official/c75209824.lua b/official/c75209824.lua index 03fac505c5..140b313621 100644 --- a/official/c75209824.lua +++ b/official/c75209824.lua @@ -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) @@ -26,7 +26,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() diff --git a/official/c75487237.lua b/official/c75487237.lua index 8509ec3b64..5338655341 100644 --- a/official/c75487237.lua +++ b/official/c75487237.lua @@ -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) @@ -24,7 +24,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() diff --git a/official/c75730490.lua b/official/c75730490.lua index 74f43edc6b..d15383a351 100644 --- a/official/c75730490.lua +++ b/official/c75730490.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) --Draw 1 card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_DRAW+CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_DRAW+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DELAY) e2:SetCode(EVENT_LEAVE_FIELD) diff --git a/official/c7608148.lua b/official/c7608148.lua index 5ce323ca19..99b53bab96 100644 --- a/official/c7608148.lua +++ b/official/c7608148.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) --Set itself local e2=Effect.CreateEffect(c) - e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_TOHAND) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_TOHAND+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c7617062.lua b/official/c7617062.lua index da452a49ee..f9873bb604 100644 --- a/official/c7617062.lua +++ b/official/c7617062.lua @@ -39,6 +39,7 @@ function s.initial_effect(c) e5:SetOperation(s.regop) c:RegisterEffect(e5) local e6=Effect.CreateEffect(c) + e6:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e6:SetRange(LOCATION_FZONE) e6:SetCode(EVENT_DAMAGE_STEP_END) diff --git a/official/c76442347.lua b/official/c76442347.lua index b06f161d1c..6cd5eb41c2 100644 --- a/official/c76442347.lua +++ b/official/c76442347.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) --special summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c76589815.lua b/official/c76589815.lua index db3a4e640a..96d54d5921 100644 --- a/official/c76589815.lua +++ b/official/c76589815.lua @@ -21,6 +21,7 @@ function s.initial_effect(c) --atk local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,0)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_ATTACK_ANNOUNCE) e3:SetRange(LOCATION_MZONE) diff --git a/official/c76869711.lua b/official/c76869711.lua index 72948bf152..df73420ced 100644 --- a/official/c76869711.lua +++ b/official/c76869711.lua @@ -11,6 +11,7 @@ function s.initial_effect(c) --Set 1 "Rikka" Spell/Trap from the Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_SZONE) e2:SetCountLimit(1,id) diff --git a/official/c76978105.lua b/official/c76978105.lua index 364dea6394..a52bb2ca9b 100644 --- a/official/c76978105.lua +++ b/official/c76978105.lua @@ -20,6 +20,7 @@ function s.initial_effect(c) --Set 1 "Super Polymerization" from your Deck local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_GRAVE) e3:SetCountLimit(1,{id,1}) diff --git a/official/c77428945.lua b/official/c77428945.lua index 816ed53dda..e21026373b 100644 --- a/official/c77428945.lua +++ b/official/c77428945.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --position 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_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCountLimit(1,id) @@ -19,7 +19,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler()) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler()) diff --git a/official/c77573354.lua b/official/c77573354.lua index 2b294dce87..44bacb079b 100644 --- a/official/c77573354.lua +++ b/official/c77573354.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Shuffle 2 Insect, Plant, and/or Reptile monsters into the Deck and Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_TODECK) + e2:SetCategory(CATEGORY_TODECK+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c77675029.lua b/official/c77675029.lua index f6e565ab89..c91cf622ec 100644 --- a/official/c77675029.lua +++ b/official/c77675029.lua @@ -9,6 +9,7 @@ function s.initial_effect(c) --Apply a "during the End Phase of this turn, Set 1 "Exosister" Spell/Trap from your Deck, GY, or banishment" effect 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_SPSUMMON_SUCCESS) diff --git a/official/c77751766.lua b/official/c77751766.lua index 45c3d52ee5..1d81ab3b52 100644 --- a/official/c77751766.lua +++ b/official/c77751766.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Remove 1 Success Counter from this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_DESTROY+CATEGORY_RECOVER+CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_DESTROY+CATEGORY_RECOVER+CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetRange(LOCATION_SZONE) diff --git a/official/c77765207.lua b/official/c77765207.lua index 5d28f16b5c..ffc08f8201 100644 --- a/official/c77765207.lua +++ b/official/c77765207.lua @@ -31,6 +31,11 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) {b1,aux.Stringid(id,1)}, {b2,aux.Stringid(id,2)}) e:SetLabel(op) + if op==1 then + e:SetCategory(0) + elseif op==2 then + e:SetCategory(CATEGORY_SET) + end end function s.activate(e,tp,eg,ep,ev,re,r,rp) local op=e:GetLabel() diff --git a/official/c78202553.lua b/official/c78202553.lua index 0b23f9627b..9fd1809892 100644 --- a/official/c78202553.lua +++ b/official/c78202553.lua @@ -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) @@ -70,7 +70,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() diff --git a/official/c78266168.lua b/official/c78266168.lua index 7fa56d9ca4..71c849a0f1 100644 --- a/official/c78266168.lua +++ b/official/c78266168.lua @@ -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) @@ -26,7 +26,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() diff --git a/official/c7868571.lua b/official/c7868571.lua index 0432b0bbb8..3d2423fedd 100644 --- a/official/c7868571.lua +++ b/official/c7868571.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) Pendulum.AddProcedure(c) --destroy and set local e1=Effect.CreateEffect(c) - 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) diff --git a/official/c78783557.lua b/official/c78783557.lua index d15658d26e..b626f07d0c 100644 --- a/official/c78783557.lua +++ b/official/c78783557.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon this card to your opponent's field local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY+CATEGORY_TOHAND+CATEGORY_SEARCH) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY+CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c78942513.lua b/official/c78942513.lua index eb176ca290..a6cf86e25f 100644 --- a/official/c78942513.lua +++ b/official/c78942513.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_TOGRAVE) + e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE+CATEGORY_TOGRAVE+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c79106360.lua b/official/c79106360.lua index efc33fc640..cefed6a0e3 100644 --- a/official/c79106360.lua +++ b/official/c79106360.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TODECK) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TODECK+CATEGORY_TOGRAVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP) e1:SetTarget(s.target) e1:SetOperation(s.operation) @@ -13,7 +13,9 @@ function s.initial_effect(c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,PLAYER_ALL,LOCATION_MZONE) + Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,PLAYER_ALL,LOCATION_DECK) + Duel.SetPossibleOperationInfo(0,CATEGORY_TOGRAVE,nil,1,PLAYER_ALL,LOCATION_DECK) end function s.filter(c) return not c:IsStatus(STATUS_BATTLE_DESTROYED) and c:IsAbleToDeck() diff --git a/official/c79324191.lua b/official/c79324191.lua index 20ac1a9c1b..08b411d779 100644 --- a/official/c79324191.lua +++ b/official/c79324191.lua @@ -10,6 +10,7 @@ function s.initial_effect(c) --set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_SZONE) e2:SetCountLimit(1) diff --git a/official/c79387392.lua b/official/c79387392.lua index b252bf44cd..7e904eb970 100644 --- a/official/c79387392.lua +++ b/official/c79387392.lua @@ -16,6 +16,7 @@ function s.initial_effect(c) --Set "Metal Reflect Slime" local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_MZONE) diff --git a/official/c79519259.lua b/official/c79519259.lua index c6057f6b72..952b2343db 100644 --- a/official/c79519259.lua +++ b/official/c79519259.lua @@ -9,6 +9,7 @@ function s.initial_effect(c) --Set 1 "Assault Mode Activate" from your hand, Deck, or GY 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_SPSUMMON_SUCCESS) diff --git a/official/c79627627.lua b/official/c79627627.lua index 08c481fa01..efc31bf85b 100644 --- a/official/c79627627.lua +++ b/official/c79627627.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 Level 5 or higher Flip monster 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_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,id) @@ -16,7 +16,7 @@ function s.initial_effect(c) --Special Summon this card in face-down Defense Position local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c799183.lua b/official/c799183.lua index e9d1abb77f..0072df74b5 100644 --- a/official/c799183.lua +++ b/official/c799183.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) --Set itself from GY local e2=Effect.CreateEffect(c) - e2:SetCategory(CATEGORY_DISABLE) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetRange(LOCATION_GRAVE) e2:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c80015408.lua b/official/c80015408.lua index c4f7f0656e..1b63d4f1dc 100644 --- a/official/c80015408.lua +++ b/official/c80015408.lua @@ -74,11 +74,11 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) {b2,aux.Stringid(id,3)}) e:SetLabel(op) if op==1 then - e:SetCategory(CATEGORY_SPECIAL_SUMMON) + e:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) elseif op==2 then e:SetCategory(CATEGORY_POSITION) - Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,tp,LOCATION_MZONE) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,tp,POS_FACEUP_DEFENSE) end end function s.effop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c80019195.lua b/official/c80019195.lua index 1d9bfd84d8..4d4834ffba 100644 --- a/official/c80019195.lua +++ b/official/c80019195.lua @@ -23,6 +23,7 @@ function s.initial_effect(c) --set 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:SetCode(EVENT_BE_BATTLE_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c80071619.lua b/official/c80071619.lua index a2c23e7c77..be8b7ed116 100644 --- a/official/c80071619.lua +++ b/official/c80071619.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Set 1 "R.B." Spell/Trap from your Deck or GY 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_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,id) diff --git a/official/c80101899.lua b/official/c80101899.lua index d8039f47ff..5d9582e550 100644 --- a/official/c80101899.lua +++ b/official/c80101899.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Set 1 Normal Trap Card from the Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_REMOVE) + e1:SetCategory(CATEGORY_REMOVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_STANDBY_PHASE|TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E) diff --git a/official/c80168720.lua b/official/c80168720.lua index 0a14744cd7..06f0ea8208 100644 --- a/official/c80168720.lua +++ b/official/c80168720.lua @@ -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:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -25,7 +25,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) 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,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c80181649.lua b/official/c80181649.lua index 6309308aa3..267c4d7c5d 100644 --- a/official/c80181649.lua +++ b/official/c80181649.lua @@ -26,6 +26,7 @@ function s.initial_effect(c) --Set 1 "K9" Quick-Play Spell from your Deck or 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_DESTROYED) diff --git a/official/c80551022.lua b/official/c80551022.lua index f368cc7f95..a40eb5a9fb 100644 --- a/official/c80551022.lua +++ b/official/c80551022.lua @@ -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}) diff --git a/official/c80604091.lua b/official/c80604091.lua index ee23db6b05..31773cc175 100644 --- a/official/c80604091.lua +++ b/official/c80604091.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) --instant local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SUMMON) + e2:SetCategory(CATEGORY_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetRange(LOCATION_SZONE) e2:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c80802524.lua b/official/c80802524.lua index 473f7813a4..6ef478e96b 100644 --- a/official/c80802524.lua +++ b/official/c80802524.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_TO_GRAVE) diff --git a/official/c8080257.lua b/official/c8080257.lua index 344d5aee7a..d832598fa9 100644 --- a/official/c8080257.lua +++ b/official/c8080257.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 monster from your Extra Deck and change the position of a monster on the field local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SPSUMMON_SUCCESS) @@ -36,7 +36,7 @@ end function s.exsptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.exspfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) - Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_ALL,LOCATION_MZONE) + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_ALL,POS_FACEDOWN_DEFENSE) end function s.exspop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) diff --git a/official/c80870883.lua b/official/c80870883.lua index b4ebfa7809..62e6acabe4 100644 --- a/official/c80870883.lua +++ b/official/c80870883.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) --Set 1 "Metalmorph" Trap from your Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TODECK) + e1:SetCategory(CATEGORY_TODECK+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,id) diff --git a/official/c80885284.lua b/official/c80885284.lua index bdf0889a7e..0ff9edd354 100644 --- a/official/c80885284.lua +++ b/official/c80885284.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --turn set 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -40,7 +40,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() diff --git a/official/c80921533.lua b/official/c80921533.lua index 8fe962dc00..e6ed6ad9ef 100644 --- a/official/c80921533.lua +++ b/official/c80921533.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) --Activate 1 of these effects local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SUMMON) + e2:SetCategory(CATEGORY_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetProperty(EFFECT_FLAG_BOTH_SIDE) e2:SetRange(LOCATION_FZONE) diff --git a/official/c81057455.lua b/official/c81057455.lua index b447a086e3..09573ef84a 100644 --- a/official/c81057455.lua +++ b/official/c81057455.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) --position change 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_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_SZONE) @@ -48,7 +48,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,LOCATION_MZONE,1,nil) 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,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) if not e:GetHandler():IsRelateToEffect(e) then return end diff --git a/official/c81210420.lua b/official/c81210420.lua index 1a84e05304..2d6c1d715d 100644 --- a/official/c81210420.lua +++ b/official/c81210420.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_POSITION+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_BATTLE_START|TIMING_BATTLE_END) diff --git a/official/c81237046.lua b/official/c81237046.lua index 52597ae1d6..7ee75ba897 100644 --- a/official/c81237046.lua +++ b/official/c81237046.lua @@ -28,7 +28,7 @@ function s.initial_effect(c) --Special Summon 1 monster from your hand in face-down Defense Position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_HAND) e3:SetCost(Cost.AND(Cost.SelfReveal,s.spcost)) diff --git a/official/c81278754.lua b/official/c81278754.lua index 6c2c8e7848..0a7c6b72b8 100644 --- a/official/c81278754.lua +++ b/official/c81278754.lua @@ -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) @@ -27,7 +27,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() diff --git a/official/c81497285.lua b/official/c81497285.lua index 1b9a63e1cf..3af92493db 100644 --- a/official/c81497285.lua +++ b/official/c81497285.lua @@ -33,6 +33,7 @@ function s.initial_effect(c) --Set 1 Normal Trap from the Deck local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) + e4:SetCategory(CATEGORY_SET) e4:SetType(EFFECT_TYPE_QUICK_O) e4:SetCode(EVENT_CHAINING) e4:SetRange(LOCATION_MZONE) diff --git a/official/c81522098.lua b/official/c81522098.lua index 23731cbe56..f14c30f575 100644 --- a/official/c81522098.lua +++ b/official/c81522098.lua @@ -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}) diff --git a/official/c81601517.lua b/official/c81601517.lua index 1ca985accb..13660e4070 100644 --- a/official/c81601517.lua +++ b/official/c81601517.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) + e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_POSITION+CATEGORY_SET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) @@ -24,7 +24,8 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) - Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil) + local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0) diff --git a/official/c81613061.lua b/official/c81613061.lua index 27603dc986..306c994467 100644 --- a/official/c81613061.lua +++ b/official/c81613061.lua @@ -21,6 +21,7 @@ function s.initial_effect(c) --Set 1 "War Rock" Spell/Trap from your Deck local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,0)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_SZONE) e3:SetCountLimit(1,id) diff --git a/official/c81907872.lua b/official/c81907872.lua index a39923d9c6..3a5df7ed45 100644 --- a/official/c81907872.lua +++ b/official/c81907872.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --turn set 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -20,7 +20,7 @@ function s.initial_effect(c) --spsummon local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DRAW) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DRAW+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e3:SetCode(EVENT_TO_GRAVE) @@ -38,7 +38,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() diff --git a/official/c82359538.lua b/official/c82359538.lua index 301052c13c..9f1fdb8b5e 100644 --- a/official/c82359538.lua +++ b/official/c82359538.lua @@ -28,7 +28,7 @@ function s.initial_effect(c) --Special Summon 1 monster from your hand in face-down Defense Position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_HAND) e3:SetCost(Cost.AND(Cost.SelfReveal,s.spcost)) diff --git a/official/c82434071.lua b/official/c82434071.lua index d7aa7db9e5..bf17257db9 100644 --- a/official/c82434071.lua +++ b/official/c82434071.lua @@ -40,9 +40,11 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) op=Duel.SelectOption(tp,aux.Stringid(id,2))+1 end if op==0 then + e:SetCategory(0) e:SetOperation(s.topop) s.toptg(e,tp,eg,ep,ev,re,r,rp,1) else + e:SetCategory(CATEGORY_SET) e:SetOperation(s.setop) s.settg(e,tp,eg,ep,ev,re,r,rp,1) end diff --git a/official/c82633039.lua b/official/c82633039.lua index bd8554aac1..80129b136a 100644 --- a/official/c82633039.lua +++ b/official/c82633039.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) --Change 1 monster to face-down Defense Position 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:SetProperty(EFFECT_FLAG_CARD_TARGET) @@ -38,7 +38,7 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.setfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.setfilter,tp,LOCATION_MZONE,LOCATION_MZONE,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.setop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c82738277.lua b/official/c82738277.lua index b6f07ea96d..123ead0026 100644 --- a/official/c82738277.lua +++ b/official/c82738277.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) --Return 1 set S/T, then can set 1 S/T from hand local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_TOHAND) + e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SET) e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetRange(LOCATION_MZONE) diff --git a/official/c82896870.lua b/official/c82896870.lua index d6d5835042..df36201046 100644 --- a/official/c82896870.lua +++ b/official/c82896870.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Set 1 "Toy Vendor" and send "Fluffal" to the GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOGRAVE) + e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) diff --git a/official/c83257450.lua b/official/c83257450.lua index ae10ba021d..d4d69e6fa4 100644 --- a/official/c83257450.lua +++ b/official/c83257450.lua @@ -41,6 +41,7 @@ function s.initial_effect(c) --Set 1 "Exodd" or "Obliterate!!!" Spell/Trap from your Deck local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,2)) + e4:SetCategory(CATEGORY_SET) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetCode(EVENT_PHASE+PHASE_END) e4:SetRange(LOCATION_MZONE) diff --git a/official/c83293307.lua b/official/c83293307.lua index 7b721a46d0..eb004e08e9 100644 --- a/official/c83293307.lua +++ b/official/c83293307.lua @@ -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) diff --git a/official/c84079032.lua b/official/c84079032.lua index 22d00adad1..003c93dc1b 100644 --- a/official/c84079032.lua +++ b/official/c84079032.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Change the position of opponent's Normal or Special Summoned monster local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_COIN+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_COIN+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SUMMON_SUCCESS) @@ -22,7 +22,7 @@ function s.initial_effect(c) --Change position of a monster if it is flipped face-up or face-down local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_POSITION) + e3:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP,EFFECT_FLAG2_CHECK_SIMULTANEOUS) e3:SetCode(EVENT_CHANGE_POS) diff --git a/official/c84121302.lua b/official/c84121302.lua index 85f96580f8..1cb1dbf79a 100644 --- a/official/c84121302.lua +++ b/official/c84121302.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c8428836.lua b/official/c8428836.lua index a08cac2b47..c0d899e0c3 100644 --- a/official/c8428836.lua +++ b/official/c8428836.lua @@ -4,11 +4,12 @@ local s,id=GetID() function s.initial_effect(c) --Ritual Summon - Ritual.AddProcGreater({handler=c,filter=s.ritualfil,lvtype=RITPROC_GREATER,sumpos=POS_FACEUP_ATTACK|POS_FACEDOWN_DEFENSE,location=LOCATION_HAND|LOCATION_GRAVE}) + local e0=Ritual.AddProcGreater({handler=c,filter=s.ritualfil,lvtype=RITPROC_GREATER,sumpos=POS_FACEUP_ATTACK|POS_FACEDOWN_DEFENSE,location=LOCATION_HAND|LOCATION_GRAVE}) + e0:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) --Special Summon 1 non-Ritual "Prediction Princess" from your Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_PHASE|PHASE_STANDBY) e1:SetRange(LOCATION_GRAVE) diff --git a/official/c84433129.lua b/official/c84433129.lua index b01dd38087..8200b4b4ef 100644 --- a/official/c84433129.lua +++ b/official/c84433129.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set 1 "Ryzeal" 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_SPSUMMON_SUCCESS) diff --git a/official/c84472026.lua b/official/c84472026.lua index e5f417e929..d1c07ceb44 100644 --- a/official/c84472026.lua +++ b/official/c84472026.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --Change itself 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -39,7 +39,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() diff --git a/official/c84477320.lua b/official/c84477320.lua index 0fea9ce72a..4a6b6c7e68 100644 --- a/official/c84477320.lua +++ b/official/c84477320.lua @@ -20,6 +20,7 @@ function s.initial_effect(c) --Set 1 "Dracotail" 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) diff --git a/official/c84550369.lua b/official/c84550369.lua index c84cd4a2ea..d8047a48e9 100644 --- a/official/c84550369.lua +++ b/official/c84550369.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Send 1 "Mikanko" card from your Deck to the GY, except "Mikanko Divine Dance - Futahashira no Uzu no Miko", then you can Set 1 "Mikanko" Spell/Trap from your Deck, except "Mikanko Divine Dance - Futahashira no Uzu no Miko" local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOGRAVE) + e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id) diff --git a/official/c85401123.lua b/official/c85401123.lua index b9734da819..7ccbed74c7 100644 --- a/official/c85401123.lua +++ b/official/c85401123.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Change itself to face-down local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,{id,1}) @@ -46,7 +46,7 @@ end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return c:IsCanTurnSet() end - 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() diff --git a/official/c85442146.lua b/official/c85442146.lua index 24f00e7fd0..3216cd739a 100644 --- a/official/c85442146.lua +++ b/official/c85442146.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c85463083.lua b/official/c85463083.lua index a6148e1cef..b852d055d6 100644 --- a/official/c85463083.lua +++ b/official/c85463083.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --turn set 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -41,7 +41,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() diff --git a/official/c85520170.lua b/official/c85520170.lua index 3297340c06..c629c6bd7a 100644 --- a/official/c85520170.lua +++ b/official/c85520170.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 Level 7 or 8 Dragon Synchro Monster 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_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c85586937.lua b/official/c85586937.lua index f8d37ce92e..8f5d5d7154 100644 --- a/official/c85586937.lua +++ b/official/c85586937.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Discard 1 other Flip monster, and if you do, Special Summon this card in Attack Position or face-down Defense Position local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_HANDES+CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_HANDES+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_HAND) e2:SetCountLimit(1,{id,1}) @@ -26,7 +26,7 @@ function s.initial_effect(c) --Special Summon 1 Flip monster from your GY in face-down Defense Position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetCode(EVENT_PHASE+PHASE_END) diff --git a/official/c85646474.lua b/official/c85646474.lua index 8a3d093b1c..f412d6b389 100644 --- a/official/c85646474.lua +++ b/official/c85646474.lua @@ -5,7 +5,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:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(s.condition) diff --git a/official/c85672957.lua b/official/c85672957.lua index 7bc5343c6d..12b1bcc131 100644 --- a/official/c85672957.lua +++ b/official/c85672957.lua @@ -29,7 +29,7 @@ function s.initial_effect(c) --Set 1 "Change" Quick-Play Spell from your GY local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_LEAVE_GRAVE) + e3:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetCode(EVENT_PHASE+PHASE_END) diff --git a/official/c85698115.lua b/official/c85698115.lua index fe139bac00..7b6de11f5e 100644 --- a/official/c85698115.lua +++ b/official/c85698115.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Shuffle 1 Level 1 monster to the Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_TODECK) + e2:SetCategory(CATEGORY_TODECK+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c85758066.lua b/official/c85758066.lua index 5243301deb..42213c17d7 100644 --- a/official/c85758066.lua +++ b/official/c85758066.lua @@ -5,7 +5,7 @@ local s,id=GetID() function s.initial_effect(c) --Set local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_LEAVE_GRAVE) + e1:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c85800949.lua b/official/c85800949.lua index 73b72635b0..d4c8240a94 100644 --- a/official/c85800949.lua +++ b/official/c85800949.lua @@ -22,6 +22,7 @@ function s.initial_effect(c) --Set 1 Trap card 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:SetCode(EVENT_BE_BATTLE_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c8608979.lua b/official/c8608979.lua index 7baf6d2f56..ac0ccac3f9 100644 --- a/official/c8608979.lua +++ b/official/c8608979.lua @@ -14,6 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) --set local e2=Effect.CreateEffect(c) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_DESTROYED) e2:SetProperty(EFFECT_FLAG_DELAY) diff --git a/official/c8617563.lua b/official/c8617563.lua index 609dc1dfec..69e6964cc8 100644 --- a/official/c8617563.lua +++ b/official/c8617563.lua @@ -9,6 +9,7 @@ function s.initial_effect(c) --Set 1 "Raidraptor" Spell/Trap directly from your Deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) diff --git a/official/c86289475.lua b/official/c86289475.lua index bb9ebdd590..fe8ff3d698 100644 --- a/official/c86289475.lua +++ b/official/c86289475.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) --Change 1 face-up monster on the field to face-down Defense Position local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_CHAINING) diff --git a/official/c86346363.lua b/official/c86346363.lua index e96f357f93..bc8021f8a6 100644 --- a/official/c86346363.lua +++ b/official/c86346363.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon itself from the hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_FLIP) @@ -19,7 +19,7 @@ function s.initial_effect(c) --Special Summon 1 monster form the GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FLIP) @@ -35,7 +35,7 @@ function s.selfsptg(e,tp,eg,ep,ev,re,r,rp,chk) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,LOCATION_HAND) - Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_EITHER,LOCATION_MZONE) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_EITHER,POS_FACEDOWN_DEFENSE) end function s.selfspop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -59,7 +59,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,tp,0) - Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_EITHER,LOCATION_MZONE) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_EITHER,POS_FACEDOWN_DEFENSE) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c86516889.lua b/official/c86516889.lua index 5b994bbbd7..016f162fcc 100644 --- a/official/c86516889.lua +++ b/official/c86516889.lua @@ -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:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c86605515.lua b/official/c86605515.lua index d94fc17a52..5d46d97e84 100644 --- a/official/c86605515.lua +++ b/official/c86605515.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Set 1 Continuous Trap from hand or GY 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:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(s.sttg) diff --git a/official/c86889202.lua b/official/c86889202.lua index a55f158310..eac6667501 100644 --- a/official/c86889202.lua +++ b/official/c86889202.lua @@ -11,6 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,id) diff --git a/official/c86999951.lua b/official/c86999951.lua index bcffe801d6..a623191703 100644 --- a/official/c86999951.lua +++ b/official/c86999951.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Flip opponent's monsters face-down local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) @@ -16,7 +16,7 @@ function s.initial_effect(c) --Flip opponent's monsters face-down when destroyed local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_DESTROYED) @@ -29,7 +29,7 @@ end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,0,LOCATION_MZONE,nil) if chk==0 then return #g>0 end - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) Duel.SetPossibleOperationInfo(0,CATEGORY_TOGRAVE,nil,0,1-tp,LOCATION_ONFIELD) end function s.posop(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c87091930.lua b/official/c87091930.lua index da99bc85b5..5960d66bca 100644 --- a/official/c87091930.lua +++ b/official/c87091930.lua @@ -24,6 +24,7 @@ function s.initial_effect(c) --Set 1 "Rank-Up-Magic" Spell from your Deck or 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_DELAY) e2:SetCode(EVENT_DESTROYED) diff --git a/official/c87483942.lua b/official/c87483942.lua index b1c7a9162b..cb9b817694 100644 --- a/official/c87483942.lua +++ b/official/c87483942.lua @@ -6,8 +6,8 @@ function s.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_FLIP) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetTarget(s.sptg) diff --git a/official/c87607094.lua b/official/c87607094.lua index 1ce421066e..2d6d77ac99 100644 --- a/official/c87607094.lua +++ b/official/c87607094.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Negate the activation of an opponent's Spell/Trap Card, and if you do, Set that card local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_NEGATE) + e1:SetCategory(CATEGORY_NEGATE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(s.condition) diff --git a/official/c87746184.lua b/official/c87746184.lua index 393c45095d..79556e2ad3 100644 --- a/official/c87746184.lua +++ b/official/c87746184.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) --Add to your hand or Set 1 "Branded" Spell/Trap from your Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) + e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c88032456.lua b/official/c88032456.lua index 3c2301e5f9..74f0c8505e 100644 --- a/official/c88032456.lua +++ b/official/c88032456.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c88078306.lua b/official/c88078306.lua index 16df691ad0..99f937dc48 100644 --- a/official/c88078306.lua +++ b/official/c88078306.lua @@ -15,6 +15,7 @@ function s.initial_effect(c) --Set 2 "Hole" Normal Traps (from deck and GY) with different names local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,{id,1}) diff --git a/official/c88316955.lua b/official/c88316955.lua index e41c883365..3ee6fc77f2 100644 --- a/official/c88316955.lua +++ b/official/c88316955.lua @@ -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) diff --git a/official/c88332693.lua b/official/c88332693.lua index 00717ca5b0..be8b9da5ec 100644 --- a/official/c88332693.lua +++ b/official/c88332693.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set 1 "Assault Mode Activate" from your hand or Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,{id,1}) diff --git a/official/c88346805.lua b/official/c88346805.lua index 28d6d380e2..ac3a1493bd 100644 --- a/official/c88346805.lua +++ b/official/c88346805.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon this card as an Effect Monster 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_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER_E) @@ -18,7 +18,7 @@ function s.initial_effect(c) --Destroy as many cards as possible local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_DESTROY) + e2:SetCategory(CATEGORY_DESTROY+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_CHAINING) e2:SetRange(LOCATION_MZONE) diff --git a/official/c8852158.lua b/official/c8852158.lua index 287a6e3973..ca27de5804 100644 --- a/official/c8852158.lua +++ b/official/c8852158.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) --Change any number of face-down monsters on the field to face-up Defense Position 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_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_MZONE) @@ -40,7 +40,7 @@ function s.posfilter(c) end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end - Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_EITHER,LOCATION_MZONE) + Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_EITHER,POS_FACEUP_DEFENSE|POS_FACEDOWN_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp,chk) local facedown_ct=Duel.GetMatchingGroupCount(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) diff --git a/official/c88667504.lua b/official/c88667504.lua index 07fe43eb4b..10ce0e64bd 100644 --- a/official/c88667504.lua +++ b/official/c88667504.lua @@ -26,6 +26,7 @@ function s.initial_effect(c) --Set "Outrigger Expansion" or "Spin Turn" local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,2)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c89320376.lua b/official/c89320376.lua index d469d20f6e..8f6cd03ef5 100644 --- a/official/c89320376.lua +++ b/official/c89320376.lua @@ -25,6 +25,7 @@ function s.initial_effect(c) --pos (face-up) local e3=e2:Clone() e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e3:SetCost(s.poscost) e3:SetTarget(s.postg2) e3:SetOperation(s.posop2) @@ -110,7 +111,7 @@ function s.postg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.posfilter,tp,LOCATION_MZONE,0,1,1,nil) e:SetLabel(1) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) end function s.posop2(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end diff --git a/official/c89328238.lua b/official/c89328238.lua index 30c7a22d85..23874d8e48 100644 --- a/official/c89328238.lua +++ b/official/c89328238.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set itself but banish it when it leaves the field local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c89516305.lua b/official/c89516305.lua index f1a2c63e29..c5f507bd3b 100644 --- a/official/c89516305.lua +++ b/official/c89516305.lua @@ -50,10 +50,10 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEDOWN) Duel.SelectTarget(tp,Card.IsFacedown,tp,0,LOCATION_SZONE,1,1,nil) elseif op==2 then - e:SetCategory(CATEGORY_POSITION) + e:SetCategory(CATEGORY_POSITION+CATEGORY_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.setfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) elseif op==3 then e:SetCategory(CATEGORY_ATKCHANGE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATKDEF) diff --git a/official/c89707961.lua b/official/c89707961.lua index 9eb43461f1..20acdf9cd9 100644 --- a/official/c89707961.lua +++ b/official/c89707961.lua @@ -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) @@ -24,7 +24,7 @@ function s.initial_effect(c) --spsummon local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCode(EVENT_DESTROYED) @@ -38,7 +38,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() diff --git a/official/c89776023.lua b/official/c89776023.lua index 4ec42b100f..52af1ace2c 100644 --- a/official/c89776023.lua +++ b/official/c89776023.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon 1 "Evoltile" monster from the 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_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SUMMON_SUCCESS) @@ -20,6 +20,7 @@ function s.initial_effect(c) --Set 1 "Evo-Force" or "Evo-Instant" from the Deck local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_MZONE) e3:SetCountLimit(1,{id,1}) diff --git a/official/c89856523.lua b/official/c89856523.lua index 427efeb227..47f7d656ff 100644 --- a/official/c89856523.lua +++ b/official/c89856523.lua @@ -8,6 +8,7 @@ function s.initial_effect(c) --set 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:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(s.setcon) diff --git a/official/c89932017.lua b/official/c89932017.lua index 3d9e28441f..ac63f63649 100644 --- a/official/c89932017.lua +++ b/official/c89932017.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Set this card, but banish it when it leaves the field local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c90075978.lua b/official/c90075978.lua index cf24603918..7c40d586ab 100644 --- a/official/c90075978.lua +++ b/official/c90075978.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_POSITION+CATEGORY_SPECIAL_SUMMON+CATEGORY_DRAW) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_SPECIAL_SUMMON+CATEGORY_DRAW+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER_E) diff --git a/official/c90312154.lua b/official/c90312154.lua index 3b3cf08334..643e708cb2 100644 --- a/official/c90312154.lua +++ b/official/c90312154.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Activate + Set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_END_PHASE) diff --git a/official/c90440725.lua b/official/c90440725.lua index b718be1968..268bac437c 100644 --- a/official/c90440725.lua +++ b/official/c90440725.lua @@ -42,6 +42,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) --turn set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetRange(LOCATION_MZONE) diff --git a/official/c90616316.lua b/official/c90616316.lua index 682308da2e..ba5c989503 100644 --- a/official/c90616316.lua +++ b/official/c90616316.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --Special summon itself from the 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_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_TO_GRAVE) e1:SetCondition(s.spcon) diff --git a/official/c90664684.lua b/official/c90664684.lua index 329d16d046..83ec488a84 100644 --- a/official/c90664684.lua +++ b/official/c90664684.lua @@ -36,6 +36,7 @@ function s.initial_effect(c) --Set 1 non-Continuous "Ryu-Ge" Trap from your Deck, GY, or banishment 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_DESTROYED) diff --git a/official/c9074847.lua b/official/c9074847.lua index 95a536f19b..08a5f67f9d 100644 --- a/official/c9074847.lua +++ b/official/c9074847.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_TO_HAND) e1:SetCondition(s.condition) diff --git a/official/c90809975.lua b/official/c90809975.lua index f75085d468..428771c2f1 100644 --- a/official/c90809975.lua +++ b/official/c90809975.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) --Negate activation local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) + e2:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e2:SetCode(EVENT_CHAINING) diff --git a/official/c90829280.lua b/official/c90829280.lua index 1894d4872a..97929d2c16 100644 --- a/official/c90829280.lua +++ b/official/c90829280.lua @@ -38,7 +38,7 @@ function s.initial_effect(c) --Add 1 Spell/Trap that mentions "Yubel" to the hand or Set it to the field local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(id,2)) - e5:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) + e5:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SET) e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e5:SetProperty(EFFECT_FLAG_DELAY) e5:SetCode(EVENT_SPSUMMON_SUCCESS) diff --git a/official/c91397409.lua b/official/c91397409.lua index bb2be0044e..038f146112 100644 --- a/official/c91397409.lua +++ b/official/c91397409.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) --Special Summon from the 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:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SPSUMMON_SUCCESS) diff --git a/official/c91530236.lua b/official/c91530236.lua index f768cd1d2e..915014cdb9 100644 --- a/official/c91530236.lua +++ b/official/c91530236.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Take 2 cards from the deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c9156135.lua b/official/c9156135.lua index 94e3ff2c25..66af93e854 100644 --- a/official/c9156135.lua +++ b/official/c9156135.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) --spsummon local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) - e4:SetCategory(CATEGORY_SPECIAL_SUMMON) + e4:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetCode(EVENT_BATTLE_DESTROYED) e4:SetCondition(s.condition) diff --git a/official/c91706817.lua b/official/c91706817.lua index 56f68351bc..f79c0bcfdc 100644 --- a/official/c91706817.lua +++ b/official/c91706817.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set 1 Normal Trap from hand or Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_DAMAGE) diff --git a/official/c91742238.lua b/official/c91742238.lua index 3f44875a7b..97b253c32a 100644 --- a/official/c91742238.lua +++ b/official/c91742238.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Shuffle 1 of your banished Zombie monsters into the Deck, and if you do, Set this card, but banish it when it leaves the field local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_TODECK+CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_TODECK+CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c91818544.lua b/official/c91818544.lua index a74ca62e95..55b99d683b 100644 --- a/official/c91818544.lua +++ b/official/c91818544.lua @@ -28,7 +28,7 @@ function s.initial_effect(c) --Change this card to face-down Defense Position 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_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_PHASE+PHASE_END) e3:SetRange(LOCATION_MZONE) @@ -78,7 +78,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,0) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEUP_ATTACK) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() diff --git a/official/c91951471.lua b/official/c91951471.lua index c7e9863085..013fb6ce29 100644 --- a/official/c91951471.lua +++ b/official/c91951471.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Activate 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_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -26,7 +26,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.tgfilter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) - Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,LOCATION_MZONE) + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,POS_FACEDOWN_DEFENSE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c91957038.lua b/official/c91957038.lua index 50f5dc2447..5fa155fb31 100644 --- a/official/c91957038.lua +++ b/official/c91957038.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --Normal Summon/Set 1 Spellcaster with 1850 ATK local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SUMMON) + e2:SetCategory(CATEGORY_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_SZONE) e2:SetCountLimit(1,id) diff --git a/official/c92110878.lua b/official/c92110878.lua index 8a9f6af80f..f3c00fa9b3 100644 --- a/official/c92110878.lua +++ b/official/c92110878.lua @@ -20,6 +20,7 @@ function s.initial_effect(c) --Set 1 "Stronghold the Hidden Fortress" directly from your Deck 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_DESTROYED) diff --git a/official/c92133240.lua b/official/c92133240.lua index 00ad18e724..412b9a9fda 100644 --- a/official/c92133240.lua +++ b/official/c92133240.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_ATKCHANGE) + e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_SET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c92171126.lua b/official/c92171126.lua index a958a5c6c2..4e64166653 100644 --- a/official/c92171126.lua +++ b/official/c92171126.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) --Special Summon 1 monster from your hand in face-down Defense Position local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_HAND) e3:SetCost(Cost.AND(Cost.SelfReveal,s.spcost)) diff --git a/official/c923596.lua b/official/c923596.lua index e36a23ae3a..ea24dd4e58 100644 --- a/official/c923596.lua +++ b/official/c923596.lua @@ -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) @@ -28,7 +28,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() diff --git a/official/c92650018.lua b/official/c92650018.lua index ce6292938d..2f107032d1 100644 --- a/official/c92650018.lua +++ b/official/c92650018.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) --Your opponent: Change the equipped monster to face-down Defense Position. local e2=e1:Clone() e2:SetProperty(0) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetCondition(aux.AttractionEquipCon(false)) e2:SetTarget(s.postg) e2:SetOperation(s.posop) @@ -58,7 +58,7 @@ end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) local tc=e:GetHandler():GetEquipTarget() if chk==0 then return tc and tc:IsCanTurnSet() end - Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,tp,POS_FACEDOWN_DEFENSE) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetHandler():GetEquipTarget() diff --git a/official/c92693205.lua b/official/c92693205.lua index 3ce7a15efa..420c97979b 100644 --- a/official/c92693205.lua +++ b/official/c92693205.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --turn set local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_POSITION) + e1:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetTarget(s.postg) @@ -26,7 +26,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() diff --git a/official/c92729410.lua b/official/c92729410.lua index 003e6f7613..efde0abfd8 100644 --- a/official/c92729410.lua +++ b/official/c92729410.lua @@ -5,7 +5,7 @@ function s.initial_effect(c) --spsummon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCost(s.spcost) diff --git a/official/c92736188.lua b/official/c92736188.lua index d5ec9cf294..b7a4f8bc0e 100644 --- a/official/c92736188.lua +++ b/official/c92736188.lua @@ -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) @@ -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() diff --git a/official/c92781606.lua b/official/c92781606.lua index 3973bccac2..7ccda7e7a9 100644 --- a/official/c92781606.lua +++ b/official/c92781606.lua @@ -9,7 +9,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:SetCode(EVENT_LEAVE_FIELD) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) diff --git a/official/c92870717.lua b/official/c92870717.lua index ad0502d9d0..52ad795859 100644 --- a/official/c92870717.lua +++ b/official/c92870717.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) --spsummon local e3=Effect.CreateEffect(c) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_MZONE) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c92958307.lua b/official/c92958307.lua index 00f8ce7ad2..a8b378dba5 100644 --- a/official/c92958307.lua +++ b/official/c92958307.lua @@ -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:SetProperty(EFFECT_FLAG_CARD_TARGET) @@ -25,7 +25,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return sc>0 and Duel.IsExistingTarget(s.filter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.filter,tp,0,LOCATION_MZONE,1,sc,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetTargetCards(e) diff --git a/official/c92962242.lua b/official/c92962242.lua index 7db1930b4d..58cda42386 100644 --- a/official/c92962242.lua +++ b/official/c92962242.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Flip up to 2 monsters face-down 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_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SUMMON_SUCCESS) @@ -39,7 +39,7 @@ function s.postg(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,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,1,2,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 g=Duel.GetTargetCards(e) diff --git a/official/c92970404.lua b/official/c92970404.lua index 6e0856c047..ad3775048c 100644 --- a/official/c92970404.lua +++ b/official/c92970404.lua @@ -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:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,id) @@ -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) @@ -36,7 +36,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler()) end local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler()) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,tp,POS_FACEDOWN_DEFENSE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler()) @@ -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() diff --git a/official/c93031067.lua b/official/c93031067.lua index 4ab5cc3869..bb8f956b6a 100644 --- a/official/c93031067.lua +++ b/official/c93031067.lua @@ -31,7 +31,7 @@ function s.initial_effect(c) --Set itself from GY, return 1 "Plunder Patroll" card from S/T zones to hand local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) - e4:SetCategory(CATEGORY_TOHAND) + e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SET) e4:SetType(EFFECT_TYPE_IGNITION) e4:SetProperty(EFFECT_FLAG_CARD_TARGET) e4:SetRange(LOCATION_GRAVE) diff --git a/official/c93191801.lua b/official/c93191801.lua index 6037842ccd..98a397046b 100644 --- a/official/c93191801.lua +++ b/official/c93191801.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set 1 "Eldlixir" Spell/Trap from the Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c93294869.lua b/official/c93294869.lua index b090cae54d..23da105cd9 100644 --- a/official/c93294869.lua +++ b/official/c93294869.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --set 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+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_FLIP) diff --git a/official/c93595154.lua b/official/c93595154.lua index b7d5b4490d..a223e19fa7 100644 --- a/official/c93595154.lua +++ b/official/c93595154.lua @@ -50,6 +50,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) and re:GetHandler():IsCode(CARD_ALBAZ) then local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_GRAVE) diff --git a/official/c93713837.lua b/official/c93713837.lua index 0f98a4c586..8441424ecc 100644 --- a/official/c93713837.lua +++ b/official/c93713837.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) --pos 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_QUICK_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -21,7 +21,7 @@ function s.initial_effect(c) --special summon 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_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) @@ -51,7 +51,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,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() diff --git a/official/c93723936.lua b/official/c93723936.lua index e8755adfec..0b7c4bd2f1 100644 --- a/official/c93723936.lua +++ b/official/c93723936.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c93751476.lua b/official/c93751476.lua index 06da7b2763..b7c41c8783 100644 --- a/official/c93751476.lua +++ b/official/c93751476.lua @@ -12,6 +12,7 @@ function s.initial_effect(c) --set 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) diff --git a/official/c93775296.lua b/official/c93775296.lua index cb55925a79..de0768a3d9 100644 --- a/official/c93775296.lua +++ b/official/c93775296.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c9409625.lua b/official/c9409625.lua index 278d7c9a43..cee92208e8 100644 --- a/official/c9409625.lua +++ b/official/c9409625.lua @@ -44,7 +44,7 @@ function s.initial_effect(c) --to deck local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) - e4:SetCategory(CATEGORY_TODECK) + e4:SetCategory(CATEGORY_TODECK+CATEGORY_SET) e4:SetType(EFFECT_TYPE_QUICK_O) e4:SetCode(EVENT_FREE_CHAIN) e4:SetRange(LOCATION_SZONE) diff --git a/official/c94103142.lua b/official/c94103142.lua index e66d91d511..eb8b739448 100644 --- a/official/c94103142.lua +++ b/official/c94103142.lua @@ -15,6 +15,7 @@ function s.initial_effect(c) --Set this card 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_DESTROYED) diff --git a/official/c94142993.lua b/official/c94142993.lua index 1514f26fb5..cee55aea3c 100644 --- a/official/c94142993.lua +++ b/official/c94142993.lua @@ -1,6 +1,5 @@ --ティンダングル・イントルーダー --Tindangle Intruder --- local s,id=GetID() function s.initial_effect(c) --flip @@ -26,7 +25,7 @@ function s.initial_effect(c) --special summon local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCode(EVENT_SPSUMMON_SUCCESS) diff --git a/official/c94224458.lua b/official/c94224458.lua index 2bafc1531b..c92ebefea0 100644 --- a/official/c94224458.lua +++ b/official/c94224458.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set 1 "Golden Land" Spell/Trap from your Deck local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,id) diff --git a/official/c94365540.lua b/official/c94365540.lua index 5687eb17b6..f0f0fbf999 100644 --- a/official/c94365540.lua +++ b/official/c94365540.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) --Special summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetProperty(EFFECT_FLAG_DELAY) diff --git a/official/c94503794.lua b/official/c94503794.lua index cb1b072621..b8a7bf9e0b 100644 --- a/official/c94503794.lua +++ b/official/c94503794.lua @@ -27,6 +27,7 @@ function s.initial_effect(c) --Set 1 Spell attached to this card local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) + e3:SetCategory(CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_PHASE+PHASE_END) e3:SetRange(LOCATION_MZONE) diff --git a/official/c9453320.lua b/official/c9453320.lua index 86eddc1591..aeccc81c22 100644 --- a/official/c9453320.lua +++ b/official/c9453320.lua @@ -33,6 +33,7 @@ function s.initial_effect(c) --Set 1 "Abyss-" Trap from your Deck local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) + e4:SetCategory(CATEGORY_SET) e4:SetType(EFFECT_TYPE_IGNITION) e4:SetRange(LOCATION_MZONE) e4:SetCountLimit(1,{id,1}) diff --git a/official/c94997874.lua b/official/c94997874.lua index 412b70c236..bc43821756 100644 --- a/official/c94997874.lua +++ b/official/c94997874.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) e1:SetOperation(s.posop) c:RegisterEffect(e1) local e2=e1:Clone() + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetDescription(aux.Stringid(id,1)) e2:SetTarget(s.postg2) e2:SetOperation(s.posop2) @@ -24,7 +25,7 @@ function s.initial_effect(c) --spsummon local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_PHASE+PHASE_END) e3:SetRange(LOCATION_MZONE) @@ -58,7 +59,7 @@ function s.postg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) local g=Duel.SelectTarget(tp,s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) end function s.posop2(e,tp,eg,ep,ev,re,r,rp) diff --git a/official/c95083785.lua b/official/c95083785.lua index cbec4a542c..4a61dea708 100644 --- a/official/c95083785.lua +++ b/official/c95083785.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c95218695.lua b/official/c95218695.lua index 050b29b4b3..770f25cccf 100644 --- a/official/c95218695.lua +++ b/official/c95218695.lua @@ -24,7 +24,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) @@ -63,7 +63,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() diff --git a/official/c95454996.lua b/official/c95454996.lua index 140d7c34b9..95de8d137f 100644 --- a/official/c95454996.lua +++ b/official/c95454996.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) --Set 1 "Maliss" Trap from your Deck or GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,{id,1}) diff --git a/official/c95477924.lua b/official/c95477924.lua index 3ea8b19459..108a5b7ec7 100644 --- a/official/c95477924.lua +++ b/official/c95477924.lua @@ -5,6 +5,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) diff --git a/official/c9551692.lua b/official/c9551692.lua index ab09957b5a..b6bfd19d42 100644 --- a/official/c9551692.lua +++ b/official/c9551692.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) --Special Summon 1 Flip monster from your hand or 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:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_FLIP) @@ -24,7 +24,7 @@ function s.initial_effect(c) --Special Summon itself from the GY local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_GRAVE) e3:SetCountLimit(1,{id,1}) diff --git a/official/c95545183.lua b/official/c95545183.lua index 54fabb71c7..6f867d119e 100644 --- a/official/c95545183.lua +++ b/official/c95545183.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Set 1 "Ninjitsu Art" Spell/Trap and/or 1 "Ninja" monster 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_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id) @@ -18,7 +18,7 @@ function s.initial_effect(c) --Change 1 face-up monster to face-down Defense Position local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/official/c95561146.lua b/official/c95561146.lua index eec4c06d4e..6a3f72e5fe 100644 --- a/official/c95561146.lua +++ b/official/c95561146.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon this card as a Normal Monster 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_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_STANDBY_PHASE|TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E) diff --git a/official/c9597987.lua b/official/c9597987.lua index 18f9324a35..73830aff65 100644 --- a/official/c9597987.lua +++ b/official/c9597987.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) --Special Summon "Ninja" monsters with different names local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e3:SetCode(EVENT_LEAVE_FIELD) diff --git a/official/c95993388.lua b/official/c95993388.lua index f94d0b9e88..d07203b06e 100644 --- a/official/c95993388.lua +++ b/official/c95993388.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_HAND) @@ -36,7 +36,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.filter,tp,0,LOCATION_MZONE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() diff --git a/official/c96352326.lua b/official/c96352326.lua index a02bec1c74..1ca9b917db 100644 --- a/official/c96352326.lua +++ b/official/c96352326.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Special Summon from 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:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_SUMMON_SUCCESS) diff --git a/official/c96367119.lua b/official/c96367119.lua index 4ba44ba7b9..a0198d3d9b 100644 --- a/official/c96367119.lua +++ b/official/c96367119.lua @@ -18,6 +18,7 @@ function s.initial_effect(c) --Set itself but banish it when it leaves the field local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) diff --git a/official/c96381979.lua b/official/c96381979.lua index ebc38f0952..2ebb6fc1e8 100644 --- a/official/c96381979.lua +++ b/official/c96381979.lua @@ -8,6 +8,7 @@ function s.initial_effect(c) --set 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:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(s.setcon) diff --git a/official/c96570609.lua b/official/c96570609.lua index d771f26aea..2a2dd493e7 100644 --- a/official/c96570609.lua +++ b/official/c96570609.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) --Tribute Summon this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,2)) - e2:SetCategory(CATEGORY_SUMMON) + e2:SetCategory(CATEGORY_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_HAND) diff --git a/official/c96704974.lua b/official/c96704974.lua index c53dc8890e..414d002ccd 100644 --- a/official/c96704974.lua +++ b/official/c96704974.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --Set 1 Trap Card from the GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) diff --git a/official/c97064649.lua b/official/c97064649.lua index d84c860215..bce5cb8d63 100644 --- a/official/c97064649.lua +++ b/official/c97064649.lua @@ -5,6 +5,7 @@ function s.initial_effect(c) --set 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+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_TO_GRAVE) diff --git a/official/c97518132.lua b/official/c97518132.lua index 3490eaae4a..897b5fc60c 100644 --- a/official/c97518132.lua +++ b/official/c97518132.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --flip 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_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e1:SetCountLimit(1,id) diff --git a/official/c97584500.lua b/official/c97584500.lua index 10137ebc75..08fe479b46 100644 --- a/official/c97584500.lua +++ b/official/c97584500.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --Change this card 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -41,7 +41,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&~RESET_TURN_SET)|RESET_PHASE|PHASE_END,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() diff --git a/official/c97800311.lua b/official/c97800311.lua index d7758db074..e4f8ad32dc 100644 --- a/official/c97800311.lua +++ b/official/c97800311.lua @@ -21,6 +21,7 @@ function s.initial_effect(c) --Set up to 3 "Apophis" Traps with different names from your GY local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) + e1:SetCategory(CATEGORY_SET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) diff --git a/official/c9798352.lua b/official/c9798352.lua index 228e986155..a298c44804 100644 --- a/official/c9798352.lua +++ b/official/c9798352.lua @@ -6,6 +6,7 @@ function s.initial_effect(c) --Banish 1 Trap from Deck to gain 1 Level local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_LVCHANGE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SUMMON_SUCCESS) @@ -19,7 +20,7 @@ function s.initial_effect(c) --Banish 1 Trap from the GY to gain 1 Level local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_REMOVE) + e3:SetCategory(CATEGORY_REMOVE+CATEGORY_LVCHANGE) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetRange(LOCATION_MZONE) @@ -30,6 +31,7 @@ function s.initial_effect(c) --Set 1 of your banished Normal Traps local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,2)) + e4:SetCategory(CATEGORY_SET) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e4:SetCode(EVENT_DESTROYED) diff --git a/official/c97997309.lua b/official/c97997309.lua index 5013d349a3..2f8ef16955 100644 --- a/official/c97997309.lua +++ b/official/c97997309.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_POSITION) + e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e2:SetType(EFFECT_TYPE_ACTIVATE) e2:SetCode(EVENT_FREE_CHAIN) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER|TIMING_BATTLE_PHASE) @@ -95,7 +95,7 @@ function s.target2(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.SelectMatchingCard(tp,s.rfilter,tp,LOCATION_GRAVE,0,ct,ct,nil) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) local g=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_MZONE,LOCATION_MZONE,nil) - Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEUP_ATTACK|POS_FACEDOWN_DEFENSE) end function s.activate2(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) diff --git a/official/c98173209.lua b/official/c98173209.lua index 9b4990c15c..ea291720d0 100644 --- a/official/c98173209.lua +++ b/official/c98173209.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) --Change all monsters the opponent controls to face-down local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_POSITION) + e3:SetCategory(CATEGORY_POSITION+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_ATTACK_ANNOUNCE) e3:SetRange(LOCATION_SZONE) @@ -30,7 +30,7 @@ function s.initial_effect(c) e3:SetTarget(s.postg) e3:SetOperation(s.posop) c:RegisterEffect(e3) - --Special Summon 1 "Red Dragon Archfiend" from your GY. + --Special Summon 1 "Red Dragon Archfiend" from your GY local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,2)) e4:SetCategory(CATEGORY_SPECIAL_SUMMON) @@ -68,7 +68,7 @@ end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanTurnSet,tp,0,LOCATION_MZONE,1,nil) end 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) end function s.posop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,0,LOCATION_MZONE,nil) diff --git a/official/c9822220.lua b/official/c9822220.lua index 4c8356cd0e..af0b3d8628 100644 --- a/official/c9822220.lua +++ b/official/c9822220.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) --Special Summon from hand and search if card was revealed. 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_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_CHAIN_SOLVED) diff --git a/official/c98263709.lua b/official/c98263709.lua index 245bdd662d..8894f898c3 100644 --- a/official/c98263709.lua +++ b/official/c98263709.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) --Special summon 1 level 4 or lower "Galaxy" monster from deck local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_TO_GRAVE) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP) diff --git a/official/c98349765.lua b/official/c98349765.lua index d1163729ba..f700d2e743 100644 --- a/official/c98349765.lua +++ b/official/c98349765.lua @@ -65,7 +65,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) 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_DECK) elseif op==3 then - e:SetCategory(0) + e:SetCategory(CATEGORY_SET) e:SetProperty(0) if not cost_skip then Duel.RegisterFlagEffect(tp,id+2,RESET_PHASE|PHASE_END,0,1) end end diff --git a/official/c98414735.lua b/official/c98414735.lua index 6978e63c61..4ae090ef60 100644 --- a/official/c98414735.lua +++ b/official/c98414735.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Change 1 of opponent's monsters 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:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) @@ -31,7 +31,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.filter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectTarget(tp,s.filter,tp,0,LOCATION_MZONE,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.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/official/c98427577.lua b/official/c98427577.lua index 3f401414a8..83b3180e03 100644 --- a/official/c98427577.lua +++ b/official/c98427577.lua @@ -4,6 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_SET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) diff --git a/official/c98707192.lua b/official/c98707192.lua index eac2cfc233..4da543a4c9 100644 --- a/official/c98707192.lua +++ b/official/c98707192.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) --turn set 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:SetRange(LOCATION_MZONE) e2:SetTarget(s.postg) @@ -20,7 +20,7 @@ function s.initial_effect(c) --spsummon local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) - e3:SetCategory(CATEGORY_SPECIAL_SUMMON) + e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e3:SetRange(LOCATION_HAND) @@ -40,7 +40,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() diff --git a/official/c99004583.lua b/official/c99004583.lua index 63fb1f36a5..bd412e7194 100644 --- a/official/c99004583.lua +++ b/official/c99004583.lua @@ -13,6 +13,7 @@ function s.initial_effect(c) --Set itself from GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetCondition(aux.exccon) diff --git a/official/c99157310.lua b/official/c99157310.lua index 7c390c7ac1..304ac6596d 100644 --- a/official/c99157310.lua +++ b/official/c99157310.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) --Special summon 3 "Tindangle" monsters with different names from GY local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - e2:SetCategory(CATEGORY_SPECIAL_SUMMON) + e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FREE_CHAIN) diff --git a/official/c99176254.lua b/official/c99176254.lua index 4b1d367ed6..dff96a7e47 100644 --- a/official/c99176254.lua +++ b/official/c99176254.lua @@ -27,6 +27,7 @@ function s.initial_effect(c) --Set 1 Normal Spell from your GY or banishment local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) + e2:SetCategory(CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET,EFFECT_FLAG2_CHECK_SIMULTANEOUS) e2:SetCode(EVENT_DAMAGE) diff --git a/official/c99289828.lua b/official/c99289828.lua index 17e67e2771..c2eaa6edd2 100644 --- a/official/c99289828.lua +++ b/official/c99289828.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) --Set this card local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_LEAVE_GRAVE) + e2:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetCode(EVENT_TO_GRAVE) diff --git a/pre-release/c100451001.lua b/pre-release/c100451001.lua index e6cbf31d14..1aa75dcfbc 100644 --- a/pre-release/c100451001.lua +++ b/pre-release/c100451001.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) --special summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) - 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) diff --git a/pre-release/c101304009.lua b/pre-release/c101304009.lua index 5028a19f87..31ef8470dc 100644 --- a/pre-release/c101304009.lua +++ b/pre-release/c101304009.lua @@ -64,6 +64,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) e:SetCategory(CATEGORY_COUNTER) Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,1,tp,COUNTER_PREDATOR) elseif op==2 then + e:SetCategory(CATEGORY_SET) Duel.SetPossibleOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,tp,0) end end diff --git a/pre-release/c101304015.lua b/pre-release/c101304015.lua index 372ad6514b..7da83f5030 100644 --- a/pre-release/c101304015.lua +++ b/pre-release/c101304015.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) --Once per turn, during your opponent's Main Phase, you can (Quick Effect): Immediately after this effect resolves, Tribute Summon 1 monster local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,2)) - e2:SetCategory(CATEGORY_SUMMON) + e2:SetCategory(CATEGORY_SUMMON+CATEGORY_SET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_MZONE) diff --git a/pre-release/c101304017.lua b/pre-release/c101304017.lua index 3f52755d71..d82113c810 100644 --- a/pre-release/c101304017.lua +++ b/pre-release/c101304017.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) --During your Main Phase: You can Special Summon this card from your hand to your opponent's field in face-down Defense Position, or if a face-down monster is on the field, you can Special Summon this card face-up on your field 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}) diff --git a/pre-release/c101304025.lua b/pre-release/c101304025.lua index 1f4cd2a08e..e5fa4b54f3 100644 --- a/pre-release/c101304025.lua +++ b/pre-release/c101304025.lua @@ -30,7 +30,7 @@ function s.initial_effect(c) --If this card is sent to the GY as Link Material: You can Set 1 Quick-Play Spell or Normal Trap from your GY that was sent there this turn local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) - e3:SetCategory(CATEGORY_LEAVE_GRAVE) + e3:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_SET) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCode(EVENT_BE_MATERIAL) diff --git a/pre-release/c101304029.lua b/pre-release/c101304029.lua index 2ae74199f8..1502b47a76 100644 --- a/pre-release/c101304029.lua +++ b/pre-release/c101304029.lua @@ -60,7 +60,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,PLAYER_ALL,LOCATION_MZONE|LOCATION_GRAVE) elseif op==2 then Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1) - e:SetCategory(CATEGORY_POSITION) + e:SetCategory(CATEGORY_POSITION+CATEGORY_SET) Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,PLAYER_EITHER,POS_FACEDOWN_DEFENSE) end end diff --git a/pre-release/c101304032.lua b/pre-release/c101304032.lua index 77fa61f378..33a74d281e 100644 --- a/pre-release/c101304032.lua +++ b/pre-release/c101304032.lua @@ -49,7 +49,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,nil,1,PLAYER_ALL,LOCATION_MZONE|LOCATION_GRAVE) elseif op==2 then Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1) - e:SetCategory(0) + e:SetCategory(CATEGORY_SET) end end function s.effop(e,tp,eg,ep,ev,re,r,rp) diff --git a/pre-release/c101304046.lua b/pre-release/c101304046.lua index 17d8c3803b..f2a242e37f 100644 --- a/pre-release/c101304046.lua +++ b/pre-release/c101304046.lua @@ -45,7 +45,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,nil,1,PLAYER_ALL,LOCATION_MZONE|LOCATION_GRAVE) elseif op==2 then Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1) - e:SetCategory(0) + e:SetCategory(CATEGORY_SET) end end function s.effop(e,tp,eg,ep,ev,re,r,rp) diff --git a/pre-release/c101304060.lua b/pre-release/c101304060.lua index 32f1c0341f..47726357ba 100644 --- a/pre-release/c101304060.lua +++ b/pre-release/c101304060.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) --During the End Phase: You can draw cards equal to the number of monster card types (Ritual, Fusion, Synchro, Xyz, Pendulum, Link) Tributed this turn, then you can Set 1 Spell/Trap from your hand local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) - e2:SetCategory(CATEGORY_DRAW) + e2:SetCategory(CATEGORY_DRAW+CATEGORY_SET) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetCode(EVENT_PHASE+PHASE_END) diff --git a/pre-release/c101304062.lua b/pre-release/c101304062.lua index 0c37494807..977fb1c568 100644 --- a/pre-release/c101304062.lua +++ b/pre-release/c101304062.lua @@ -17,6 +17,7 @@ function s.initial_effect(c) --Set this card, but it cannot be activated unless you control a "Fairy Tail" monster local e2a=Effect.CreateEffect(c) e2a:SetDescription(aux.Stringid(id,1)) + e2a:SetCategory(CATEGORY_SET) e2a:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2a:SetProperty(EFFECT_FLAG_DELAY) e2a:SetCode(EVENT_REMOVE) diff --git a/pre-release/c101304066.lua b/pre-release/c101304066.lua index dd4177cdd1..68fa7de8da 100644 --- a/pre-release/c101304066.lua +++ b/pre-release/c101304066.lua @@ -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|CATEGORY_POSITION) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON|CATEGORY_POSITION|CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) @@ -40,8 +40,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) - Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,e,tp) + local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,e,tp) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE) + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEDOWN_DEFENSE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() diff --git a/pre-release/c101304067.lua b/pre-release/c101304067.lua index a33bef0108..510937e0aa 100644 --- a/pre-release/c101304067.lua +++ b/pre-release/c101304067.lua @@ -34,7 +34,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) {b2,aux.Stringid(id,2)}) e:SetLabel(op) if op==1 then - e:SetCategory(0) + e:SetCategory(CATEGORY_SET) elseif op==2 then e:SetCategory(CATEGORY_RELEASE+CATEGORY_SPECIAL_SUMMON) Ritual.Target(ritual_params)(e,tp,eg,ep,ev,re,r,rp,1) diff --git a/pre-release/c101304108.lua b/pre-release/c101304108.lua index b2587ece8b..3f556d23ef 100644 --- a/pre-release/c101304108.lua +++ b/pre-release/c101304108.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) --Apply these effects, in sequence, based on the number of monsters your opponent Special Summoned this turn local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) - e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION+CATEGORY_SET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) @@ -53,7 +53,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,LOCATION_MZONE) end Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE|LOCATION_REMOVED) - Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,LOCATION_MZONE) + Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,nil,1,1-tp,POS_FACEDOWN_DEFENSE) if e:IsHasType(EFFECT_TYPE_ACTIVATE) and ct>=10 then Duel.SetChainLimit(aux.FALSE) end