Commit fa6d7820 authored by POLYMER's avatar POLYMER

fix

parent 746be7d7
...@@ -47,7 +47,9 @@ function cm.settg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -47,7 +47,9 @@ function cm.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk then return Duel.IsExistingMatchingCard(cm.filter1,tp,LOCATION_HAND,0,1,c) and Duel.IsExistingMatchingCard(cm.filter6,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) if chk then return Duel.IsExistingMatchingCard(cm.filter1,tp,LOCATION_HAND,0,1,c) and Duel.IsExistingMatchingCard(cm.filter6,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end end
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then
Duel.SetChainLimit(aux.FALSE) Duel.SetChainLimit(aux.FALSE)
end
end end
function cm.setop(e,tp,eg,ep,ev,re,r,rp) function cm.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -5539,16 +5539,18 @@ function cm.ActivatedAsSpellorTrapCheck(c) ...@@ -5539,16 +5539,18 @@ function cm.ActivatedAsSpellorTrapCheck(c)
ADIMI_GetChainInfo=Duel.GetChainInfo ADIMI_GetChainInfo=Duel.GetChainInfo
Duel.GetChainInfo=function(chainc,...) Duel.GetChainInfo=function(chainc,...)
local re=ADIMI_GetChainInfo(chainc,CHAININFO_TRIGGERING_EFFECT) local re=ADIMI_GetChainInfo(chainc,CHAININFO_TRIGGERING_EFFECT)
local rc=re:GetHandler()
local xe={}
if rc then xe={rc:IsHasEffect(53765099)} end
local b=false local b=false
local ls,typ=0 if re and aux.GetValueType(re)=="Effect" then
for _,v in pairs(xe) do local rc=re:GetHandler()
if re==v:GetLabelObject() then local xe={}
b=true if rc then xe={rc:IsHasEffect(53765099)} end
ls,typ=v:GetLabel() local ls,typ=0
break for _,v in pairs(xe) do
if re==v:GetLabelObject() then
b=true
ls,typ=v:GetLabel()
break
end
end end
end end
local t={ADIMI_GetChainInfo(chainc,...)} local t={ADIMI_GetChainInfo(chainc,...)}
......
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