Skip to content

Commit b92d926

Browse files
authored
"Proton Blast" fix
Fixed a bug where the effect could be applied more than once per turn
1 parent 5bb6d58 commit b92d926

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

official/c49511705.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp)
3939
e1:SetCode(EVENT_TOSS_COIN)
4040
e1:SetRange(LOCATION_SZONE)
4141
e1:SetOperation(s.coinregop)
42+
e1:SetReset(RESET_PHASE|PHASE_END)
4243
c:RegisterEffect(e1)
4344
--Apply effects based on the number of heads
4445
local e2=Effect.CreateEffect(c)
@@ -50,6 +51,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp)
5051
e2:SetCondition(s.effcond)
5152
e2:SetOperation(s.effop)
5253
e2:SetLabelObject(re)
54+
e2:SetReset(RESET_PHASE|PHASE_END)
5355
c:RegisterEffect(e2)
5456
end
5557
function s.coinregop(e,tp,eg,ep,ev,re,r,rp)
@@ -116,4 +118,4 @@ function s.coinop2(e,tp,eg,ep,ev,re,r,rp)
116118
table.insert(res,COIN_HEADS)
117119
end
118120
Duel.SetCoinResult(table.unpack(res))
119-
end
121+
end

0 commit comments

Comments
 (0)