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,7 +126,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -126,7 +126,8 @@ 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
end
local eset={e:GetHandler():GetActivateEffect()} local eset={e:GetHandler():GetActivateEffect()}
local tab,tab2={},{} local tab,tab2={},{}
for i,te in pairs(eset) do for i,te in pairs(eset) do
...@@ -163,6 +164,4 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -163,6 +164,4 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
fc:ReleaseEffectRelation(te) fc:ReleaseEffectRelation(te)
end end
end end
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