Skip to content

Commit fffee05

Browse files
committed
add missing categories
1 parent 4815f62 commit fffee05

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

official/c2978414.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ function s.initial_effect(c)
88
--Activate 1 of these effects
99
local e1=Effect.CreateEffect(c)
1010
e1:SetDescription(aux.Stringid(id,0))
11-
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
1211
e1:SetType(EFFECT_TYPE_IGNITION)
1312
e1:SetRange(LOCATION_MZONE)
1413
e1:SetCountLimit(1)
@@ -36,10 +35,13 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
3635
{b2,aux.Stringid(id,2)},
3736
{true,aux.Stringid(id,3)})
3837
e:SetLabel(op)
38+
e:SetCategory(0)
3939
e:SetProperty(0)
4040
if op==1 then
41+
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
4142
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
4243
elseif op==2 then
44+
e:SetCategory(CATEGORY_CONTROL)
4345
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
4446
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
4547
local g=Duel.SelectTarget(tp,s.ctfilter,tp,0,LOCATION_MZONE,1,1,nil)
@@ -62,7 +64,6 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
6264
if tc:IsRelateToEffect(e) then
6365
Duel.GetControl(tc,tp)
6466
end
65-
e:SetProperty(0)
6667
elseif op==3 then
6768
local c=e:GetHandler()
6869
--Dragon-Type monsters your opponent controls cannot activate their effects until the end of your opponent's turn

official/c89516305.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,17 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
4545
{b2,aux.Stringid(id,2)},
4646
{b3,aux.Stringid(id,3)})
4747
e:SetLabel(op)
48+
e:SetCategory(0)
4849
if op==1 then
4950
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEDOWN)
5051
Duel.SelectTarget(tp,Card.IsFacedown,tp,0,LOCATION_SZONE,1,1,nil)
5152
elseif op==2 then
53+
e:SetCategory(CATEGORY_POSITION)
5254
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
5355
local g=Duel.SelectTarget(tp,s.setfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
5456
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
5557
elseif op==3 then
58+
e:SetCategory(CATEGORY_ATKCHANGE)
5659
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
5760
Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
5861
end

0 commit comments

Comments
 (0)