Commit a63d9c00 authored by POLYMER's avatar POLYMER

fix

parent 0f878eae
......@@ -5838,7 +5838,6 @@
14060020 0
14060021 0
21401026 0
57300020 0
64800016 0
64800096 0
#limit
......
No preview for this file type
......@@ -208,7 +208,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
PNFL_MIRROR_COPIED[tp][te]=ce
local ccode=te:GetHandler():GetOriginalCode()
PNFL_MIRROR_COPY[1-tp][ce]=te:GetHandler()
PNFL_MIRROR_COPY[tp][ce]=te:GetHandler()
--PNFL_MIRROR_COPY[tp][ce]=te:GetHandler()
PNFL_MIRROR_HINTED[te]=ccode
local tg=ce:GetTarget() or aux.TRUE
local tg2=function(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -17,7 +17,12 @@ function s.mixtg(e,tp,eg,ep,ev,re,r,rp,chk)
local cct = Duel.GetCurrentChain()
local b1 = (c:IsOnField() or c:IsPublic()) and c:GetFlagEffect(id) < s.get_count(LOCATION_ONFIELD)
local b2 = c:IsLocation(LOCATION_HAND) and c:GetFlagEffect(id + 100) == 0 and cct > 1
if chk == 0 then return b1 or b2 end
if chk == 0 then
local res=(b1 or b2) and c:GetFlagEffect(id + 200)==0
if res then c:RegisterFlagEffect(id + 200, RESET_CHAIN, 0, 1) end
return res
end
c:ResetFlagEffect(id + 200)
b2 = c:IsLocation(LOCATION_HAND) and c:GetFlagEffect(id + 100) == 0 and cct > 2
--local op = b1 and 1 or 2
--if b1 and b2 then
......@@ -46,7 +51,9 @@ function s.mixtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
e:SetCategory(ctgy)
Duel.Hint(HINT_OPSELECTED,tp,aux.Stringid(id,1))
Duel.Hint(HINT_OPSELECTED,1-tp,aux.Stringid(id,1))
c:RegisterFlagEffect(0, RESET_CHAIN, EFFECT_FLAG_CLIENT_HINT, 1,0,aux.Stringid(id,1))
end
s.chain_id_scl[cct] = op
end
......
......@@ -17,7 +17,12 @@ function s.mixtg(e,tp,eg,ep,ev,re,r,rp,chk)
local cct = Duel.GetCurrentChain()
local b1 = (c:IsOnField() or c:IsPublic()) and c:GetFlagEffect(id) < s.get_count(LOCATION_HAND)
local b2 = c:IsLocation(LOCATION_HAND) and c:GetFlagEffect(id + 100) == 0 and cct > 1
if chk == 0 then return b1 or b2 end
if chk == 0 then
local res=(b1 or b2) and c:GetFlagEffect(id + 200)==0
if res then c:RegisterFlagEffect(id + 200, RESET_CHAIN, 0, 1) end
return res
end
c:ResetFlagEffect(id + 200)
b2 = c:IsLocation(LOCATION_HAND) and c:GetFlagEffect(id + 100) == 0 and cct > 2
--local op = b1 and 1 or 2
--if b1 and b2 then
......@@ -45,7 +50,9 @@ function s.mixtg(e,tp,eg,ep,ev,re,r,rp,chk)
ctgy = ctgy + CATEGORY_DRAW
end
e:SetCategory(ctgy)
Duel.Hint(HINT_OPSELECTED,tp,aux.Stringid(id,1))
Duel.Hint(HINT_OPSELECTED,1-tp,aux.Stringid(id,1))
c:RegisterFlagEffect(0, RESET_CHAIN, EFFECT_FLAG_CLIENT_HINT, 1,0,aux.Stringid(id,1))
end
s.chain_id_scl[cct] = op
end
......
......@@ -17,7 +17,12 @@ function s.mixtg(e,tp,eg,ep,ev,re,r,rp,chk)
local cct = Duel.GetCurrentChain()
local b1 = (c:IsOnField() or c:IsPublic()) and c:GetFlagEffect(id) < s.get_count(LOCATION_DECK)
local b2 = c:IsLocation(LOCATION_HAND) and c:GetFlagEffect(id + 100) == 0 and ev > 1
if chk == 0 then return b1 or b2 end
if chk == 0 then
local res=(b1 or b2) and c:GetFlagEffect(id + 200)==0
if res then c:RegisterFlagEffect(id + 200, RESET_CHAIN, 0, 1) end
return res
end
c:ResetFlagEffect(id + 200)
b2 = c:IsLocation(LOCATION_HAND) and c:GetFlagEffect(id + 100) == 0 and cct > 2
--local op = b1 and 1 or 2
--if b1 and b2 then
......@@ -42,7 +47,9 @@ function s.mixtg(e,tp,eg,ep,ev,re,r,rp,chk)
ctgy = ctgy + CATEGORY_DISABLE
end
e:SetCategory(ctgy)
Duel.Hint(HINT_OPSELECTED,tp,aux.Stringid(id,1))
Duel.Hint(HINT_OPSELECTED,1-tp,aux.Stringid(id,1))
c:RegisterFlagEffect(0, RESET_CHAIN, EFFECT_FLAG_CLIENT_HINT, 1,0,aux.Stringid(id,1))
end
s.chain_id_scl[cct] = op
end
......
......@@ -36,7 +36,12 @@ function s.mixtg(e,tp,eg,ep,ev,re,r,rp,chk)
local cct = Duel.GetCurrentChain()
local b1 = (c:IsOnField() or c:IsPublic()) and c:GetFlagEffect(id) < s.get_count(LOCATION_GRAVE)
local b2 = c:IsLocation(LOCATION_HAND) and c:GetFlagEffect(id + 100) == 0 and cct > 1
if chk == 0 then return b1 or b2 end
if chk == 0 then
local res=(b1 or b2) and c:GetFlagEffect(id + 200)==0
if res then c:RegisterFlagEffect(id + 200, RESET_CHAIN, 0, 1) end
return res
end
c:ResetFlagEffect(id + 200)
b2 = c:IsLocation(LOCATION_HAND) and c:GetFlagEffect(id + 100) == 0 and cct > 2
--local op = b1 and 1 or 2
--if b1 and b2 then
......@@ -60,7 +65,9 @@ function s.mixtg(e,tp,eg,ep,ev,re,r,rp,chk)
ctgy = ctgy + CATEGORY_DISABLE
end
e:SetCategory(ctgy)
Duel.Hint(HINT_OPSELECTED,tp,aux.Stringid(id,1))
Duel.Hint(HINT_OPSELECTED,1-tp,aux.Stringid(id,1))
c:RegisterFlagEffect(0, RESET_CHAIN, EFFECT_FLAG_CLIENT_HINT, 1,0,aux.Stringid(id,1))
end
s.chain_id_scl[cct] = op
end
......
......@@ -164,7 +164,10 @@ function cm.disable(e,c)
local x=0
if loc==LOCATION_MZONE then x=0x10000 end
if loc==LOCATION_SZONE then x=0x1000000 end
return c:IsFaceup() and c:IsLocation(loc) and (bit.band(zone,(2^c:GetSequence())*x)~=0 or (loc==LOCATION_FZONE and c:IsLocation(LOCATION_FZONE)))
local seq=c:GetSequence()
if seq<=4 then seq=4-seq end
if seq=5 then seq=6 elseif seq=6 then seq=5 end
return c:IsFaceup() and c:IsLocation(loc) and (bit.band(zone,(1<<seq)*x)~=0 or (loc==LOCATION_FZONE and c:IsLocation(LOCATION_FZONE)))
end
function cm.dis2op(e,tp,eg,ep,ev,re,r,rp)
local zone=e:GetLabel()
......
......@@ -72,7 +72,7 @@ function c87490445.sxxop2(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c87490445.discon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:GetFlagEffect(87490445)<2 and re:GetHandlerPlayer()~=tp and Duel.IsChainDisablable(ev) and c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT) and re:IsActiveType(TYPE_MONSTER)
return c:GetFlagEffect(87490445)<2 and rp==1-tp and Duel.IsChainDisablable(ev) and c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT) and re:IsActiveType(TYPE_MONSTER)
end
function c87490445.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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