Commit 2685b89a authored by salix5's avatar salix5

workaround fix: change dice

parent ea9ab75b
...@@ -84,7 +84,7 @@ end ...@@ -84,7 +84,7 @@ end
function c35772782.diceop(e,tp,eg,ep,ev,re,r,rp) function c35772782.diceop(e,tp,eg,ep,ev,re,r,rp)
local cc=Duel.GetCurrentChain() local cc=Duel.GetCurrentChain()
local cid=Duel.GetChainInfo(cc,CHAININFO_CHAIN_ID) local cid=Duel.GetChainInfo(cc,CHAININFO_CHAIN_ID)
if aux.dice_chain_id~=cid and Duel.SelectYesNo(tp,aux.Stringid(35772782,1)) then if Duel.SelectYesNo(tp,aux.Stringid(35772782,1)) then
Duel.Hint(HINT_CARD,0,35772782) Duel.Hint(HINT_CARD,0,35772782)
e:GetHandler():RegisterFlagEffect(35772782,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(35772782,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
local dc={Duel.GetDiceResult()} local dc={Duel.GetDiceResult()}
...@@ -98,6 +98,5 @@ function c35772782.diceop(e,tp,eg,ep,ev,re,r,rp) ...@@ -98,6 +98,5 @@ function c35772782.diceop(e,tp,eg,ep,ev,re,r,rp)
end end
dc[ac]=7 dc[ac]=7
Duel.SetDiceResult(table.unpack(dc)) Duel.SetDiceResult(table.unpack(dc))
aux.dice_chain_id=cid
end end
end end
...@@ -16,7 +16,7 @@ end ...@@ -16,7 +16,7 @@ end
function c39454112.diceop(e,tp,eg,ep,ev,re,r,rp) function c39454112.diceop(e,tp,eg,ep,ev,re,r,rp)
local cc=Duel.GetCurrentChain() local cc=Duel.GetCurrentChain()
local cid=Duel.GetChainInfo(cc,CHAININFO_CHAIN_ID) local cid=Duel.GetChainInfo(cc,CHAININFO_CHAIN_ID)
if aux.dice_chain_id~=cid and Duel.SelectYesNo(tp,aux.Stringid(39454112,0)) then if Duel.SelectYesNo(tp,aux.Stringid(39454112,0)) then
Duel.Hint(HINT_CARD,0,39454112) Duel.Hint(HINT_CARD,0,39454112)
local dc={Duel.GetDiceResult()} local dc={Duel.GetDiceResult()}
local ac=1 local ac=1
...@@ -30,6 +30,5 @@ function c39454112.diceop(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,6 +30,5 @@ function c39454112.diceop(e,tp,eg,ep,ev,re,r,rp)
if dc[ac]==1 or dc[ac]==3 or dc[ac]==5 then dc[ac]=6 if dc[ac]==1 or dc[ac]==3 or dc[ac]==5 then dc[ac]=6
else dc[ac]=1 end else dc[ac]=1 end
Duel.SetDiceResult(table.unpack(dc)) Duel.SetDiceResult(table.unpack(dc))
aux.dice_chain_id=cid
end end
end end
...@@ -55,7 +55,6 @@ function Auxiliary.GetXyzNumber(v) ...@@ -55,7 +55,6 @@ function Auxiliary.GetXyzNumber(v)
end end
--the chain id of the results modified by EVENT_TOSS_DICE_NEGATE --the chain id of the results modified by EVENT_TOSS_DICE_NEGATE
Auxiliary.dice_chain_id=0
Auxiliary.idx_table=table.pack(1,2,3,4,5,6,7,8) Auxiliary.idx_table=table.pack(1,2,3,4,5,6,7,8)
function Auxiliary.Stringid(code,id) function Auxiliary.Stringid(code,id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment