Commit 80fdd2c3 authored by POLYMER's avatar POLYMER

fix

parent 5861bfe7
...@@ -275,7 +275,7 @@ function cm.chkval0(e,te) ...@@ -275,7 +275,7 @@ function cm.chkval0(e,te)
if e:GetHandler():GetFlagEffect(11451854)==0 then if e:GetHandler():GetFlagEffect(11451854)==0 then
local prop=EFFECT_FLAG_SET_AVAILABLE local prop=EFFECT_FLAG_SET_AVAILABLE
if PNFL_INFLUENCED_HINT or PNFL_DEBUG then prop=prop|EFFECT_FLAG_CLIENT_HINT end if PNFL_INFLUENCED_HINT or PNFL_DEBUG then prop=prop|EFFECT_FLAG_CLIENT_HINT end
e:GetHandler():RegisterFlagEffect(11451854,RESET_EVENT+0x1fc0000,prop,1,0,aux.Stringid(11451854,2)) e:GetHandler():RegisterFlagEffect(11451854,RESET_EVENT+RESETS_STANDARD-RESET_LEAVE+RESET_MSCHANGE,prop,1,0,aux.Stringid(11451854,2))
end end
end end
return false return false
......
...@@ -71,8 +71,8 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,8 +71,8 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
for tc in aux.Next(g) do for tc in aux.Next(g) do
tc:RegisterFlagEffect(m,0,0,1) tc:RegisterFlagEffect(m,0,0,1)
local te=tc:GetActivateEffect() local te=tc:GetActivateEffect()
if te and (not te:GetDescription() or te:GetDescription()==0) then if te then
te:SetDescription(aux.Stringid(m,0)) if (not te:GetDescription() or te:GetDescription()==0) then te:SetDescription(aux.Stringid(m,0)) end
local e5=Effect.CreateEffect(tc) local e5=Effect.CreateEffect(tc)
e5:SetDescription(aux.Stringid(m,1)) e5:SetDescription(aux.Stringid(m,1))
e5:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON) e5:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON)
...@@ -126,43 +126,42 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -126,43 +126,42 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(g) Duel.HintSelection(g)
if Duel.Destroy(g,REASON_EFFECT)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then if Duel.Destroy(g,REASON_EFFECT)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if #tg>0 and Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP)>0 then if #tg>0 then Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP) end
local eset={e:GetHandler():GetActivateEffect()} end
local tab,tab2={},{} local eset={e:GetHandler():GetActivateEffect()}
for i,te in pairs(eset) do local tab,tab2={},{}
if te~=e then for i,te in pairs(eset) do
local tg=te:GetTarget() if te~=e then
local op=te:GetOperation() local tg=te:GetTarget()
if (not tg or (tg and tg(te,tp,eg,ep,ev,re,r,rp,0))) and op then local op=te:GetOperation()
tab[#tab+1]=te:GetDescription() if (not tg or (tg and tg(te,tp,eg,ep,ev,re,r,rp,0))) and op then
tab2[#tab]=i tab[#tab+1]=te:GetDescription()
end tab2[#tab]=i
end
end
if #tab==0 then return end
tab[#tab+1]=aux.Stringid(m,3)
tab2[#tab]=0
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(m,2))
local opt=tab2[1+Duel.SelectOption(tp,table.unpack(tab))]
if opt==0 then return end
local te=eset[opt]
local target=te:GetTarget()
local operation=te:GetOperation()
Duel.ClearTargetCard()
if target then target(te,tp,eg,ep,ev,re,r,rp,1) end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if g then
Duel.HintSelection(g)
for fc in aux.Next(g) do
fc:CreateEffectRelation(te)
end
end
if operation then operation(te,tp,eg,ep,ev,re,r,rp) end
if g then
for fc in aux.Next(g) do
fc:ReleaseEffectRelation(te)
end
end end
end end
end end
if #tab==0 then return end
tab[#tab+1]=aux.Stringid(m,3)
tab2[#tab]=0
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(m,2))
local opt=tab2[1+Duel.SelectOption(tp,table.unpack(tab))]
if opt==0 then return end
local te=eset[opt]
local target=te:GetTarget()
local operation=te:GetOperation()
Duel.ClearTargetCard()
if target then target(te,tp,eg,ep,ev,re,r,rp,1) end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if g then
Duel.HintSelection(g)
for fc in aux.Next(g) do
fc:CreateEffectRelation(te)
end
end
if operation then operation(te,tp,eg,ep,ev,re,r,rp) end
if g then
for fc in aux.Next(g) do
fc:ReleaseEffectRelation(te)
end
end
end end
\ No newline at end of file
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