Skip to content

Commit 69a26aa

Browse files
authored
"Mind Shuffle" fix
Should be able to use both effects in the same Chain.
1 parent 4de4336 commit 69a26aa

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

pre-release/c101305065.lua

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function s.initial_effect(c)
1616
e1:SetCode(EVENT_FREE_CHAIN)
1717
e1:SetRange(LOCATION_SZONE)
1818
e1:SetCountLimit(1,id)
19-
e1:SetCost(Cost.AND(Cost.HardOncePerChain(id),Cost.HintSelectedEffect))
19+
e1:SetCost(Cost.AND(s.opccost1,Cost.HintSelectedEffect))
2020
e1:SetTarget(s.thtg)
2121
e1:SetOperation(s.thop)
2222
e1:SetHintTiming(0,TIMING_STANDBY_PHASE|TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E)
@@ -29,12 +29,20 @@ function s.initial_effect(c)
2929
e2:SetCode(EVENT_CHAINING)
3030
e2:SetRange(LOCATION_SZONE)
3131
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return rp==1-tp end)
32-
e2:SetCost(Cost.AND(s.spcost,Cost.HardOncePerChain(id),Cost.HintSelectedEffect))
32+
e2:SetCost(Cost.AND(s.spcost,s.opccost2,Cost.HintSelectedEffect))
3333
e2:SetTarget(s.sptg)
3434
e2:SetOperation(s.spop)
3535
c:RegisterEffect(e2)
3636
end
3737
s.listed_names={CARD_RITUAL_OF_LIGHT_AND_DARKNESS}
38+
function s.opccost1(e,tp,eg,ep,ev,re,r,rp,chk)
39+
if chk==0 then return not Duel.HasFlagEffect(tp,id) end
40+
Duel.RegisterFlagEffect(tp,id+100,RESET_CHAIN,0,1)
41+
end
42+
function s.opccost2(e,tp,eg,ep,ev,re,r,rp,chk)
43+
if chk==0 then return not Duel.HasFlagEffect(tp,id+100) end
44+
Duel.RegisterFlagEffect(tp,id,RESET_CHAIN,0,1)
45+
end
3846
function s.thfilter(c)
3947
return c:IsMonster() and c:ListsCode(CARD_RITUAL_OF_LIGHT_AND_DARKNESS) and c:IsAbleToHand()
4048
end
@@ -81,4 +89,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
8189
if #g>0 then
8290
Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP)
8391
end
84-
end
92+
end

0 commit comments

Comments
 (0)