Skip to content

Commit a13e216

Browse files
authored
"Swarm of Centipedes" fix
Prevent script errors due to a missing operator
1 parent 8d4623f commit a13e216

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

official/c6116731.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function s.initial_effect(c)
1414
e1:SetTarget(s.postg)
1515
e1:SetOperation(s.posop)
1616
c:RegisterEffect(e1)
17-
--Change itself to face-down
17+
--Change this card to face-down Defense Position
1818
local e2=Effect.CreateEffect(c)
1919
e2:SetDescription(aux.Stringid(id,1))
2020
e2:SetCategory(CATEGORY_POSITION+CATEGORY_SET)
@@ -34,7 +34,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
3434
if chk==0 then return Duel.IsExistingTarget(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,c) end
3535
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
3636
local g=Duel.SelectTarget(tp,s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,c)
37-
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEUP_ATTACKPOS_FACEDOWN_DEFENSE)
37+
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,tp,POS_FACEUP_ATTACK+POS_FACEDOWN_DEFENSE)
3838
end
3939
function s.posop(e,tp,eg,ep,ev,re,r,rp)
4040
local tc=Duel.GetFirstTarget()
@@ -63,4 +63,4 @@ function s.selfposop(e,tp,eg,ep,ev,re,r,rp)
6363
if c:IsRelateToEffect(e) and c:IsFaceup() then
6464
Duel.ChangePosition(c,POS_FACEDOWN_DEFENSE)
6565
end
66-
end
66+
end

0 commit comments

Comments
 (0)