Commit 8af795c9 authored by VanillaSalt's avatar VanillaSalt

fix

parent 0406a68f
...@@ -22,9 +22,9 @@ function c39454112.diceop(e,tp,eg,ep,ev,re,r,rp) ...@@ -22,9 +22,9 @@ function c39454112.diceop(e,tp,eg,ep,ev,re,r,rp)
local ac=1 local ac=1
local ct=bit.band(ev,0xff)+bit.rshift(ev,16) local ct=bit.band(ev,0xff)+bit.rshift(ev,16)
if ct>1 then if ct>1 then
local val
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(39454112,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(39454112,1))
val,ac=Duel.AnnounceNumber(tp,table.unpack(dc,1,ct)) local val,idx=Duel.AnnounceNumber(tp,table.unpack(dc,1,ct))
ac=idx+1
end end
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
......
...@@ -78,13 +78,8 @@ function c40737112.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -78,13 +78,8 @@ function c40737112.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c40737112.rmop(e,tp,eg,ep,ev,re,r,rp) function c40737112.rmop(e,tp,eg,ep,ev,re,r,rp)
local bc=e:GetLabelObject() local bc=e:GetLabelObject()
if bc:IsRelateToBattle() then if bc:IsRelateToBattle() and bc:IsAbleToRemove() then
local e1=Effect.CreateEffect(e:GetHandler()) Duel.Destroy(bc,REASON_EFFECT+REASON_BATTLE,LOCATION_REMOVED)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
e1:SetValue(LOCATION_REMOVED)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_DAMAGE)
bc:RegisterEffect(e1,true)
end end
end end
function c40737112.recon(e) function c40737112.recon(e)
......
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